Просмотр исходного кода

setting content type to fix possible XSS attack vector

Serghey Rodin 6 лет назад
Родитель
Сommit
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");