Commit 1c54a3c0 authored by chandi's avatar chandi Committed by Matthias Larisch

codestyle fix

parent d1d72780
......@@ -100,8 +100,8 @@ if (isset($_GET['f'])) {
$page = ob_get_contents();
ob_end_clean();
if($page[0] == '{' || $page[0] == '[') {
// just assume it's an JSON, to prevent the browser from interpreting it as
if ($page[0] == '{' || $page[0] == '[') {
// just assume it's an JSON, to prevent the browser from interpreting it as
// HTML, which could result in XSS possibilities
header('Content-Type: application/json');
}
......
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