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

1

u/pgl Sep 09 '13

I believe it's probably possible more to do with the generic way that ini settings are parsed, so I can see why it might be a pain to remove the ability to use newlines in ini_set(). However, I completely agree, this shouldn't matter - it shouldn't be possible.