Explorar o código

Merge pull request #1231 from Alkarex/pshb-nosniff

HTTP security: prevent reflection abuse
Alexandre Alapetite %!s(int64=9) %!d(string=hai) anos
pai
achega
28bf7c80f5
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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);
 define('MAX_PAYLOAD', 3145728);
 
 
 header('Content-Type: text/plain; charset=UTF-8');
 header('Content-Type: text/plain; charset=UTF-8');
+header('X-Content-Type-Options: nosniff');
 
 
 function logMe($text) {
 function logMe($text) {
 	file_put_contents(USERS_PATH . '/_/log_pshb.txt', date('c') . "\t" . $text . "\n", FILE_APPEND);
 	file_put_contents(USERS_PATH . '/_/log_pshb.txt', date('c') . "\t" . $text . "\n", FILE_APPEND);