]> source.dussan.org Git - nextcloud-server.git/commit
Add sanitizers for JSON output 24663/head
authorLukas Reschke <lukas@statuscode.ch>
Fri, 11 Dec 2020 21:23:11 +0000 (21:23 +0000)
committerGitHub <noreply@github.com>
Fri, 11 Dec 2020 21:23:11 +0000 (21:23 +0000)
commit8a8aa4f7dc72a6eb3f704806cf795c2bb7297b89
tree77f0f32ca3d0189af9860ee0d02d3ccac22954da
parent9dd27f923ef38da522b46e7112d720c66d520dea
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>
lib/private/legacy/OC_API.php
lib/private/legacy/OC_JSON.php