Commit 02ca80d8 authored by Ad Schellevis's avatar Ad Schellevis

(mvc) add some basic sanitization to api output

parent a004fe9a
......@@ -90,7 +90,7 @@ class ApiControllerBase extends ControllerRoot
$data = $dispatcher->getReturnedValue();
if (is_array($data)) {
$this->response->setContentType('application/json', 'UTF-8');
echo json_encode($data) ;
echo htmlspecialchars(json_encode($data), ENT_NOQUOTES);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment