Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2012-06-22 15:58:15 +0400
committerBjoern Schiessle <schiessle@owncloud.com>2012-06-22 16:03:05 +0400
commitb6c862b32f3e97df37e2bf06aed715334031daba (patch)
tree0234417331d8d059f7e0a7ca76e70bb8ea431856
parente5171da30057253570274f385eb97e411e961f12 (diff)
use sanitizeHTML() function
Conflicts: apps/gallery/lib/tiles.php
-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 dcdf6aa1bfb..53ea97ff05d 100644
--- a/apps/gallery/lib/tiles.php
+++ b/apps/gallery/lib/tiles.php
@@ -141,7 +141,7 @@ class TileStack extends TileBase {
}
public function get() {
- $r = '<div class="title gallery_div">'.htmlentities($this->stack_name).'</div>';
+ $r = '<div class="title gallery_div">'. \OCP\Util::sanitizeHTML($this->stack_name).'</div>';
for ($i = 0; $i < count($this->tiles_array); $i++) {
$top = rand(-5, 5);
$left = rand(-5, 5);