summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/gallery/sharing.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gallery/sharing.php b/apps/gallery/sharing.php
index 44fcd9c864b..af3e553e454 100644
--- a/apps/gallery/sharing.php
+++ b/apps/gallery/sharing.php
@@ -37,7 +37,7 @@ OCP\App::checkAppEnabled('gallery');
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script src="js/sharing.js" type="text/javascript"></script>
<script>
- var TOKEN = '<?php echo $_GET['token']; ?>';
+ var TOKEN = '<?php echo htmlentities($_GET['token']); ?>';
</script>
</head>
<body>