Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug report: Pad Lines outputs [object Object] with empty length field #1997

Open
leumasme opened this issue Mar 8, 2025 · 0 comments
Open
Labels

Comments

@leumasme
Copy link

leumasme commented Mar 8, 2025

Describe the bug
Pad Lines operation with empty Length field outputs [object Object]

To Reproduce
Steps to reproduce the behaviour or a link to the recipe / input used to cause the bug:

  • Use "Pad Lines" operation
  • Set Length field to be empty

https://gchq.github.io/CyberChef/#recipe=Pad_lines('Start',null,'test%20')&input=aGk

Expected behaviour
Either output an actual error if length is not set, or use some sensible default behavior.
In my opinion, a useful default behavior would be to assume Length to be the length of the "Character" textbox input. This way, if you want to pad a line with some string, you don't have to manually compute the string length to use Pad Lines

Desktop (if relevant, please complete the following information):

  • Browser: Chrome 134
  • CyberChef version: 10.19.4
@leumasme leumasme added the bug label Mar 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant