http://fluin.com/?search=%22%3E%3Cscript%3Ealert%28%27XSS%27...
A little security flaw ;)
A little security flaw ;)
Edit: Using a bit.ly link, since HN's URL parser is leaving out the closing ].
Edit: But yeah, my bad for not noticing that earlier. I've swapped it out for a bit.ly link now, so it works properly. I'm headed to sleep. :)
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.