deface icon indicating copy to clipboard operation
deface copied to clipboard

Corrupting JS scripts

Open salmanmp opened this issue 3 years ago • 1 comments

When use deface to change some parts of page, non related parts like JS may be corrupted. For example if you deface this page to convert "Hello" to "Hi"

<%= "Hello deface" %>
<script>alert(1 > 2);</script>

it changes to

<%= "Hi deface" %>
<script>alert(1 &gt; 2);</script>

">" changed to "&gt;"

deface 1.8.1
ruby 2.5.5
rails 5.2

salmanmp avatar Dec 11 '21 10:12 salmanmp

It happens also when you deface some part of partial page, and JS was in parent page.

salmanmp avatar Dec 11 '21 10:12 salmanmp