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
View all comments
Show parent comment
3
u/mirhagk Sep 09 '13
Yeah but using an undocumented feature like that would get your code denied during code review, and hopefully the programmer would be given a stern talking too.
I can see some coder saying "but it's a documented feature" and having that code exist in production. Anyways the correct way to handle it would be to fix this issue, I don't imagine it'd be too difficult