Skip to content

Commit

Permalink
Merge pull request #33 from nahakiole/fix-xss-issue
Browse files Browse the repository at this point in the history
Fixing XSS security issue.
  • Loading branch information
wickedest committed Nov 10, 2015
2 parents 21bd639 + 36eb076 commit 24b75d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<script type="text/javascript" src="/Mergely/lib/searchcursor.js"></script>

<script type="text/javascript">
var key = '<?php echo $key; ?>';
var key = '<?php echo htmlspecialchars($key, ENT_QUOTES, 'UTF-8'); ?>';
var isSample = key == 'usaindep';
</script>

Expand Down

0 comments on commit 24b75d2

Please sign in to comment.