diff --git a/apps/gallery/sharing.php b/apps/gallery/sharing.php index 44fcd9c864b35337a3544fcb9c5a5d53bbd5903b..a9683c020673979626ede2bc1d0c37c192065043 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 htmlentities(echo $_GET['token']); ?>'; </script> </head> <body>