瀏覽代碼

#3344 Security enhancements - 1 - correct header for 'restore_ghosts' action

Alex Trofimov 5 年之前
父節點
當前提交
d90aa00fe3
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      storage_uploader.php

+ 1 - 1
storage_uploader.php

@@ -50,7 +50,7 @@ switch ($sAction) {
         break;
         break;
 
 
     case 'restore_ghosts':
     case 'restore_ghosts':
-        header('Content-type: text/html; charset=utf-8');
+        header('Content-Type: application/json; charset=utf-8');
         $sImagesTranscoder = bx_process_input(bx_get('img_trans'));
         $sImagesTranscoder = bx_process_input(bx_get('img_trans'));
         echo $oUploader->getGhosts((int)bx_get_logged_profile_id(), $sFormat, $sImagesTranscoder, $iContentId);
         echo $oUploader->getGhosts((int)bx_get_logged_profile_id(), $sFormat, $sImagesTranscoder, $iContentId);
         break;
         break;