Conversation
| end | ||
|
|
||
| it "normalizes Arbre elements" do | ||
| expect(pretty_format(Arbre::Element.new.br)).to eq("<br>\n") |
There was a problem hiding this comment.
This is an unexpected change in output from this patch. Before the ouput would be <br />, now it's <br>. Seems ok?
There was a problem hiding this comment.
https://stackoverflow.com/questions/1946426/html-5-is-it-br-br-or-br#1946446
For more information.
There was a problem hiding this comment.
Its fine. No need to be self closing in HTML5.
There was a problem hiding this comment.
Only issue would be user searching for literal <br /> on a text field but current filter will show <br>... Could be confusing somehow but seems reeeeally edge...
There was a problem hiding this comment.
And an improvement anyways because previously nothing would be displayed, just some whitespace.
744b8d1 to
aa32957
Compare
|
Should it only be sanitizee if the string isn't already considered |
|
Mmm, I think that's what |
aa32957 to
0456e2d
Compare
|
There is still an issue in the activeadmin/lib/active_admin/view_helpers/display_helper.rb Lines 72 to 79 in a473cb6 The The current code for activeadmin/lib/active_admin/view_helpers/display_helper.rb Lines 17 to 36 in a473cb6 This an acute problem when the ActiveRecord model implements one of the activeadmin/lib/active_admin/application_settings.rb Lines 27 to 34 in 26b7c84 The end result is XSS from user supplied data stored in active record models. |
|
Thanks so much @markstory! Can you send us a patch fixing the other issues? |
|
@deivid-rodriguez Sure, would you like a pull request to this branch or to master? |
|
I think master is fine, it should be pretty independent from the code in this PR, right? Thanks! |
|
Yes, this seems heavy handed. In our project, this strips the I'm all for sanitizing the strings, but perhaps the step should be ignored when strings are declared to be safe? edit: fwiw, we're seeing this in |
|
Sorry about that, fixes welcome 🙏! Or if the old situation is preferred, we can always revert my patch and release a new patch level version. I'm sorry I don't have time to contribute again now... 😞 |
Fixes #5198.
Supersedes #5265.