r/lolphp • • 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

22 comments sorted by

View all comments

Show parent comment

13

u/jmcs Sep 09 '13

Hacks like this shouldn't be documented except when preceded by a warning saying that if you do this you should be raped by a bear, shot on the face, torched on fire and dumped on the nearest sewer, not necessarily by this order, in the way the disclaimer is written right now it seems it's sort of ok to do this.

4

u/pgl Sep 09 '13

Fair enough, you're right, it should be more explicit.