Skip to content
Snippets Groups Projects
Commit 4a2ee43e authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Fix #457 - escape JSON in INITIAL_STATE (this bug only ever allowed a user to...

Fix #457 - escape JSON in INITIAL_STATE (this bug only ever allowed a user to xss themselves rather than anyone else)
parent 7951e7ff
No related branches found
No related tags found
No related merge requests found
- content_for :header_tags do
:javascript
window.INITIAL_STATE = #{render(file: 'home/initial_state', formats: :json)}
window.INITIAL_STATE = #{json_escape(render(file: 'home/initial_state', formats: :json))}
= javascript_include_tag 'application'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment