mirror of
https://github.com/nextcloud/server.git
synced 2026-05-19 16:39:59 -04:00
xss vulnerabilities fixed
This commit is contained in:
parent
033d372f98
commit
e1fa9c282b
2 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue