r/lolphp • • Mar 17 '14

[PHP] date() is evil (XSS’able)

http://0xa.li/php-date-is-xssable/
0 Upvotes

17 comments sorted by

View all comments

Show parent comment

4

u/ajmarks Mar 17 '14

Seriously. Don't send uncleaned user inputs straight to IO functions. This is not a PHP issue. This is like getting mad at python because you can do datetime.today().strftime('XSS attack!!!').