[Pkg-owncloud-commits] [owncloud] 05/08: Sanitize the exception
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:09:23 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.0.11
in repository owncloud.
commit 306d5ee5295def630d3bdf875aefc1db58850027
Author: Lukas Reschke <lukas at statuscode.ch>
Date: Sat Jan 19 19:59:52 2013 +0100
Sanitize the exception
---
apps/files_sharing/ajax/share.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apps/files_sharing/ajax/share.php b/apps/files_sharing/ajax/share.php
index fb28caf..e11d2c6 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) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list