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
path: root/apps
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2013-01-19 22:59:52 +0400
committerLukas Reschke <lukas@statuscode.ch>2013-01-19 22:59:52 +0400
commit306d5ee5295def630d3bdf875aefc1db58850027 (patch)
tree9d39dd1a0c42a35462173455e44a6a6202d474e9 /apps
parentf603454fba7e468a9f6b46e2095264782ad450dd (diff)
Sanitize the exception
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/ajax/share.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/ajax/share.php b/apps/files_sharing/ajax/share.php
index fb28caf7b7e..e11d2c64ee7 100644
--- a/apps/files_sharing/ajax/share.php
+++ b/apps/files_sharing/ajax/share.php
@@ -25,7 +25,7 @@ foreach ($sources as $source) {
}
} catch (Exception $exception) {
OCP\Util::writeLog('files_sharing', 'Unexpected Error : '.$exception->getMessage(), OCP\Util::ERROR);
- OCP\JSON::error(array('data' => array('message' => $exception->getMessage())));
+ OCP\JSON::error(array('data' => array('message' => OC_Util::sanitizeHTML($exception->getMessage()))));
}
} else {
if ($file['encrypted'] == true) {