Quellcode durchsuchen

HTTP security: prevent reflection abuse

https://msdn.microsoft.com/en-us/library/gg622941(v=vs.85).aspx
Alexandre Alapetite vor 9 Jahren
Ursprung
Commit
1a53058ef0
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  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);