-
-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
Description
At the moment the interception forcibly converts all quotes inside the content of script elements into " entities. The following ERB:
<script type="application/json" id="timeline-data"><%== JSON.generate({hello: "world"}) %></script>gets output like so with normal ERB:
<script type="application/json" id="timeline-data">{"hello":"world"}</script>but with Reactionview intercepts the render is:
<script type="application/json" id="timeline-data">{"hello":"world"}</script>which predictably wrecks any downstream parsing. I've done a test with <script>alert("hello")</script> and that is obviously not working, so browsers don't decode those entities.
If this is done for security I would strongly urge to reconsider this approach.
Reactions are currently unavailable