Re:Fluin: Like a cross between IM and a Forum
by fluin on Wednesday January 05, 2011 @01:52AM
(#2070203)
This one is fixed :)
[ Parent
| on HN ]
Re:Fluin: Like a cross between IM and a Forum
by nbpoole on Wednesday January 05, 2011 @08:50AM
(#2070915)
It actually isn't. This example won't execute on page load, but it will if someone clicks in the search box.
http://fluin.com/?search=Search%22%20onclick=alert%28documen...
Since you're using PHP, I recommend you use a function like htmlspecialchars here rather than whatever kind of filtering you're doing.