Jump to content

stripping quotes from post info


dennismonsewicz

Recommended Posts

It will replace all instances of ' and " with an empty string... This doesn't take into account 'stylized' quotes outside of the ASCII range, but if you're trying to prevent injection it would work. Many prefer to replace them with backticks (`) or use mysql_real_escape_string as an alternative to completely removing them.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.