diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2020-12-11 21:23:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-11 21:23:11 +0000 |
commit | 8a8aa4f7dc72a6eb3f704806cf795c2bb7297b89 (patch) | |
tree | 77f0f32ca3d0189af9860ee0d02d3ccac22954da /lib/private/legacy/OC_API.php | |
parent | 9dd27f923ef38da522b46e7112d720c66d520dea (diff) | |
download | nextcloud-server-8a8aa4f7dc72a6eb3f704806cf795c2bb7297b89.tar.gz nextcloud-server-8a8aa4f7dc72a6eb3f704806cf795c2bb7297b89.zip |
Add sanitizers for JSON output
Those functions set proper content-types that prevent rendering of
data. Therefore it's safe to mark them as sanitizers.
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'lib/private/legacy/OC_API.php')
-rw-r--r-- | lib/private/legacy/OC_API.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/legacy/OC_API.php b/lib/private/legacy/OC_API.php index 5e4a46ab4d7..cba60826196 100644 --- a/lib/private/legacy/OC_API.php +++ b/lib/private/legacy/OC_API.php @@ -43,6 +43,7 @@ class OC_API { * respond to a call * @param \OC\OCS\Result $result * @param string $format the format xml|json + * @psalm-taint-escape html */ public static function respond($result, $format = 'xml') { $request = \OC::$server->getRequest(); |