Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
reduce XSS risk of url query passthrough - revisit again
  • Loading branch information
TrystanLea committed Jul 22, 2021
1 parent 98e7965 commit f95a433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Theme/theme.php
Expand Up @@ -91,7 +91,7 @@
<script>
// Draw menu just before drawing content but after defining content-container
var path = "<?php echo $path; ?>";
var q = "<?php echo $q; ?>"+location.search+location.hash;
var q = "<?php echo preg_replace('/[^.\/_A-Za-z0-9-]/', '', $q); ?>"+location.search+location.hash;
menu.init(<?php echo json_encode($menu); ?>);
</script>
<?php echo $content; ?>
Expand Down

0 comments on commit f95a433

Please sign in to comment.