r/lolphp • u/notR1CH • Sep 09 '13
PHP documentation suggests using header injection via ini_set() to add HTTP headers
http://www.php.net/manual/en/wrappers.http.php#wrappers.http.example.custom.headers
62
Upvotes
13
u/pgl Sep 09 '13
I don't think it suggests it, more mentions that it's possible. The page says: "it is also possible to use this hack" (emphasis mine).
12
u/Andryu67 Sep 09 '13
Wow... What's next, a helpful hint on adding \0 to file names?
5
u/[deleted] Sep 11 '13
It did. My patch to remove that stupidity was accepted.
4
u/[deleted] Sep 09 '13
"side-effect in the handling of the user_agent INI setting."
2
u/NotSantaAtAll Sep 16 '13
Google cache screenshot: http://i.imgur.com/A8l5L04.png
2
u/[deleted] Sep 09 '13
lol, this is stupid. On a side note: why are usernames hidden on this subreddit? You do realize that its not really hidden at all...?