deface
deface copied to clipboard
Corrupting JS scripts
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 > 2);</script>
">" changed to ">"
deface 1.8.1
ruby 2.5.5
rails 5.2
It happens also when you deface some part of partial page, and JS was in parent page.