MichaeISword
said
:
humans #1 fk the gods.
Says me with an avatar featuring both an Archangel and Lucifer, with my rsn being named after a relic. Such a hypocrite D:
You should still do more to your $_GET than trim it, but you'll be pretty safe from SQL injection. For rs display names, just chop it at 12 characters, remove non-alphanumeric characters besides hyphens/underscores/spaces, and call it a day. RSN's are probably the safest things to take in as input :p
25-Jan-2014 04:24:48
- Last edited on
25-Jan-2014 04:25:25
by
Meredith wtf
Basically, PHP does a find and replace (ie swaps :user for Meredith, or :user with user; DROP TABLE table_name) by default, which defeats the entire purpose of parameters. With ATTR_EMULATE_PREPARES set to false, the database will handle the parameters
25-Jan-2014 04:28:22
- Last edited on
25-Jan-2014 04:30:36
by
Meredith wtf