Преглед изворни кода

setting content type to fix possible XSS attack vector

Serghey Rodin пре 6 година
родитељ
комит
c28c5d29a3
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      web/file_manager/fm_api.php

+ 1 - 1
web/file_manager/fm_api.php

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