Skip to content
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

Corrupting JS scripts #224

Open
salmanmp opened this issue Dec 11, 2021 · 1 comment
Open

Corrupting JS scripts #224

salmanmp opened this issue Dec 11, 2021 · 1 comment

Comments

@salmanmp
Copy link

salmanmp commented Dec 11, 2021

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
Copy link
Author

salmanmp commented Dec 11, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant