gchq / gchq/CyberChef

Bug report: input in URL is not cleared when clearing input

Open
#1,469 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
35.8k
Forks
4.1k
Avg merge
2d 26m
Merged PRs (30d)
33

Description

**Describe the bug**

The "input=" parameter in URL is not removed when clearing input via the trash can (Clear input and output) button.

**To Reproduce**

1. Add some operation ("To Base64" for example, or add none)
2. Enter some input ("test" for example)
3. Press the trash can (Clear input and output) button

**Expected behaviour**

The "input=" parameter in URL should disappear along with the input being erased.

**Desktop (if relevant, please complete the following information):**
- OS: Windows 10 Home 21H2 x64
- Browser: Firefox Browser 106.0.5 (64bit)
- CyberChef version: 9.48.0

**Additional context**

Information on "Report a Bug" tab:

* Version: 9.48.0
* Compile time: 14/10/2022 23:17:50 UTC
* User-Agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0
* [Link to reproduce](https://gchq.github.io/CyberChef/#input=dGVzdA)

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue using the provided link, then trace the trash-can “Clear input and output” action and how the URL’s input= parameter is updated. Done means clearing the input also removes input= from the URL while preserving the expected cleared state.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.