We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9dd7ebd commit 9e4a4acCopy full SHA for 9e4a4ac
1 file changed
no.php
@@ -46,6 +46,10 @@
46
function getRequestHeaders($multipart_delimiter=NULL) {
47
$headers = array();
48
foreach($_SERVER as $key => $value) {
49
+ if ($key === "HTTP_X_FORWARDED_USER") {
50
+ # Ignore the "X-Forwarded-User" header requested by the user.
51
+ continue;
52
+ }
53
if(preg_match("/^HTTP/", $key)) { # only keep HTTP headers
54
if(preg_match("/^HTTP_HOST/", $key) == 0 && # let curl set the actual host/proxy
55
preg_match("/^HTTP_ORIGIN/", $key) == 0 &&
0 commit comments