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

Merge pull request #1231 from Alkarex/pshb-nosniff

HTTP security: prevent reflection abuse
Alexandre Alapetite пре 9 година
родитељ
комит
28bf7c80f5
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      p/api/pshb.php

+ 1 - 0
p/api/pshb.php

@@ -5,6 +5,7 @@ require(LIB_PATH . '/lib_rss.php');	//Includes class autoloader
 define('MAX_PAYLOAD', 3145728);
 
 header('Content-Type: text/plain; charset=UTF-8');
+header('X-Content-Type-Options: nosniff');
 
 function logMe($text) {
 	file_put_contents(USERS_PATH . '/_/log_pshb.txt', date('c') . "\t" . $text . "\n", FILE_APPEND);