// Adds a HTTP header to array
function addHttpHeader ($header) {
+ // Is 'Proxy' set?
+ if (substr(trim(strtolower($header)), 0, 6) == 'proxy:') {
+ // Don't allow this header being sent
+ reportBug(__FUNCTION__, __LINE__, 'Security-relevant HTTP header "Proxy" detected. Please do not set this. See https://httpoxy.org/ for details.');
+ } // END - if
+
// Send the header
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, ': header=' . $header);
array_push($GLOBALS['http_header'], trim($header));