-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
BUGFIX: Trim leading and tailing whitespaces #3860
Conversation
Whitespaces like a tab can lead to a 404 error if a URL has been pasted to a LinkEditor or LinkInput. As datasources, assets, URLs and slugs should not start with a whitespace, we can remove them. Fixes: neos#3859
If I missed something, please let me know. Also thought about an editor option to trim that, but that would be more a feature than a bug fix then. trimed-link.mp4 |
Ensure that searchTerm is a string before trimming the value.
The acceptance tests will run when #3855 has been merged. At the moment they are broken. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me by reading, thx!
Thanks for having a look! |
Will test it again, but also used the Clipboard. |
@pKallert Don't know why it worked before for me 🙈. Thanks for the test and review. |
Ok , as the Hope that we now have a solution that works for all cases 🙈 |
Finally, tests are also passing 🥳 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works like a charm, thank you!
Whitespaces like a tab can lead to a 404 error if a URL has been pasted to a
LinkEditor
orLinkInput
.As data sources, assets, URLs and slugs should not start with a whitespace, we can remove them.
Fixes: #3859