xss vulnerabilities fixed

remotes/origin/stable45
Bjoern Schiessle 13 years ago
parent 033d372f98
commit e1fa9c282b
  1. 2
      apps/gallery/lib/tiles.php
  2. 2
      apps/gallery/templates/index.php

@ -168,7 +168,7 @@ class TileStack extends TileBase {
}
public function getOnClickAction() {
return 'javascript:openNewGal(\''.$this->stack_name.'\');';
return 'javascript:openNewGal(\''.\OCP\Util::sanitizeHTML($this->stack_name).'\');';
}
private $tiles_array;

@ -1,6 +1,6 @@
<script type="text/javascript">
var root = "<?php echo $_['root']; ?>";
var root = "<?php echo OCP\Util::sanitizeHTML($_['root']); ?>";
$(document).ready(function() {
$("a[rel=images]").fancybox({

Loading…
Cancel
Save