-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Html whitelist #3164
Html whitelist #3164
Conversation
…HTML sanitization
Thankyou for the rescue @bricesanchez |
You're welcome! |
@parndt, it's ready to be merged if you're ok. |
Ok, and how I can remove some elements from whitelist? If I want to disable the possibility of including |
|
Well I suppose, if it were required we could include a blacklist if there was a demand (taking @parndt 's comment into consideration). |
@parndt , I just tried to save
=raw @page.content_for(:body) , which I use in page`s template. Probably, to prevent script from being displayed I should use more complex way of rendering, like it is in
|
Which is not explicitly whitelisted is forbidden.
The HTML sanitizer is for frontend only, so |
@bricesanchez , exactly, that is what I have noticed in #3164 (comment), but the question is still here: what if I want to disable some of ALLOWED_ELEMENTS`s default tags? |
@sintro Ok, i understand. So you will have to override the refinerycms/pages/lib/refinery/pages/configuration.rb Lines 31 to 33 in c793da0
|
This PR replaces #3154, it's just a rebase on master.