summaryrefslogtreecommitdiffstats
path: root/apps/gallery/lib
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2012-06-22 14:11:57 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2012-06-22 14:11:57 +0200
commite1fa9c282bd268efdcb09a63fcfbd0a68ee11a7a (patch)
tree56367ece561406ef7d1b7378c212ac8f98421d7f /apps/gallery/lib
parent033d372f986bb91c3772ad5130361387990d6ce3 (diff)
downloadnextcloud-server-e1fa9c282bd268efdcb09a63fcfbd0a68ee11a7a.tar.gz
nextcloud-server-e1fa9c282bd268efdcb09a63fcfbd0a68ee11a7a.zip
xss vulnerabilities fixed
Diffstat (limited to 'apps/gallery/lib')
-rw-r--r--apps/gallery/lib/tiles.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gallery/lib/tiles.php b/apps/gallery/lib/tiles.php
index 2bc8d4fcce0..011168471f0 100644
--- a/apps/gallery/lib/tiles.php
+++ b/apps/gallery/lib/tiles.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;