[Pkg-owncloud-commits] [owncloud] 293/394: Sanitize the exception
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:12:32 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.
commit fb334f3c1f1ddef27ca2d8c0cd802cb667b79a8d
Author: Lukas Reschke <lukas at statuscode.ch>
Date: Sat Jan 19 19:57:17 2013 +0100
Sanitize the exception
---
core/ajax/share.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/ajax/share.php b/core/ajax/share.php
index c98a329..2f5a352 100644
--- a/core/ajax/share.php
+++ b/core/ajax/share.php
@@ -99,7 +99,7 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
OCP\Util::sendMail($to_address, $to_address, $subject, $text, $from_address, $user);
OCP\JSON::success();
} catch (Exception $exception) {
- OCP\JSON::error(array('data' => array('message' => $exception->getMessage())));
+ OCP\JSON::error(array('data' => array('message' => OC_Util::sanitizeHTML($exception->getMessage()))));
}
break;
}
--
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