Sanitizing the user input to prevent a reflected XSS. Thanks to Nico Golde (ngolde.de)

remotes/origin/stable45
Lukas Reschke 13 years ago committed by Jörn Friedrich Dreyer
parent eadb894eff
commit 63d6884e23
  1. 2
      apps/gallery/templates/index.php

@ -14,7 +14,7 @@ div.visible { opacity: 0.8;}
</style> </style>
<script type="text/javascript"> <script type="text/javascript">
var root = "<?php echo $root; ?>"; var root = "<?php echo htmlentities($root); ?>";
function explode(element) { function explode(element) {
$('div', element).each(function(index, elem) { $('div', element).each(function(index, elem) {

Loading…
Cancel
Save