aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre.alapetite@alexandra.dk> 2016-08-29 09:44:18 +0200
committerGravatar Alexandre Alapetite <alexandre.alapetite@alexandra.dk> 2016-08-29 09:44:18 +0200
commit1a53058ef0887df6dfb91ae269ef76ee5d3f9a31 (patch)
tree02a8c2b452962452cd5fa9bdfedd4bfa4adc5ab4
parent07d2015127e934c8e548687a61aa5e0522293758 (diff)
HTTP security: prevent reflection abuse
https://msdn.microsoft.com/en-us/library/gg622941(v=vs.85).aspx
-rw-r--r--p/api/pshb.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/p/api/pshb.php b/p/api/pshb.php
index 136b98fc9..650767114 100644
--- a/p/api/pshb.php
+++ b/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);