-
Notifications
You must be signed in to change notification settings - Fork 205
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
Encode select options #555
Conversation
Much appreciated -- thanks @barryvdh |
This commit broke existing behavior; select options containing "<" for example are were incorrectly encoded as HTML entities. This reverts commit 7d16463.
I had to revert this due to backwards compatibility. This commit incorrectly converts characters in select labels such as @barryvdh Can you speak to the original goal of this PR? |
I think the use-case was XSS, for example a dropdown with user names like |
Hmm.. I'm unsure how Former could protect against I could be mistaken, but it seems that Former can't help here? |
I'm not 100% sure, but I think it was when using a model query/collection as input, so not really easy to manually escape (or at least not really expected to be outputted raw), not sure what is best though. |
What about adding an |
* 'master' of github.com:formers/former: (47 commits) Support Laravel 7 Fix errors when using rules in validation array Add tests Fix errors when using rules in validation array Laravel 6 support (formers#591) Adds correct checkbox input class when is a checkbox (or radio) (formers#590) Encode checkbox value to prevent XSS attack (formers#584) Fix the Bootstrap 4 help blocks Fix tabs vs spaces :) Fix Bootstrap 4 validation messages not being colored red Fix the error state for Bootstrap 4 Fix TwitterBootstrap4 blockHelp Add default TwitterBootstrap4 config Adding support for Bootstrap 4 (formers#577) Add Choice field type Add field modifiers to store moethod signature metadata and postpone framework classes until render time Checkable allow setting inline, stacked, grouped via boolaen attribute Allow setting required via boolean attribute per formers#571 Update README.md Revert "Encode select options (formers#555)" ...
Options are not encoded correctly.