Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Concatenating strings for example. As shown, it's the query string equivalent of sql injection.

Use something like URLBuilder, or URIParams, or whatever your platform supports. Don't use string concatenation ever, if at all possible, and if not possible (wtf?), then at least escape strings.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: