setting content type to fix possible XSS attack vector

This commit is contained in:
Serghey Rodin 2019-04-12 17:20:45 +03:00
parent 576a0003da
commit c28c5d29a3

View file

@ -1,8 +1,8 @@
<?php <?php
// Init // Init
//error_reporting(NULL); //error_reporting(NULL);
header('Content-Type: application/json');
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php"); include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
include($_SERVER['DOCUMENT_ROOT']."/file_manager/fm_core.php"); include($_SERVER['DOCUMENT_ROOT']."/file_manager/fm_core.php");