Coffee on the Keyboard
  • Home
  • jamessocol.com
Subscribe
Tagged

attack

A collection of 1 post

attack

Responsible SQL: How to Authenticate Users

Most SQL-injection articles set a horrible example for young programmers. Here is a very typical “bad example” of why you need to escape user data before it goes into SQL queries: (ed. The symbol « is a line break that’s not in the real code.) 1. $username = $_POST[‘username’]; // username=

James Socol Nov 9, 2008 • 4 min read
Coffee on the Keyboard © 2022
Powered by Ghost