Re:Cross-Site Scripting? In PHP Notices? It's more likely th...
by georgefox on Thursday August 18, 2011 @09:06AM
(#2899020)
I know what you mean, but the link you provided doesn't actually seem to be doing any HTML encoding.
Re:Cross-Site Scripting? In PHP Notices? It's more likely th...
by nbpoole on Thursday August 18, 2011 @09:15AM
(#2899051)
Haha, whoops! Sorry about that, back to normal. Anyone who hit that URL in the past 10 minutes would have seen unsanitized HTML, because I was testing the impact of disabling the html_errors INI option (something one of my blog's comments asked about). I've updated the blog post to discuss html_errors as well. ;-)
This is something PHP already gets right with warnings, fatal errors, etc. The issue is only with notices as far as I've seen (I haven't delved into the PHP source to see what the difference is).
A demonstration file:
Compare: tohttp://sandboxing.me/poc/147b9119e818c92f7f74bad71cc12255.ph...