Dang addslashes() And GPC Magic Quotes

Somewhere in the WordPress code extra slashes are being added to my query terms.

I’ve turned GPC magic quotes off via a php_value magic_quotes_gpc 0 directive in the .htaccess file (we have far too much legacy code that nobody wants to touch to turn it off site-wide). And I know my code is doing one run of addslashes(), but where are the other two sets of slashes coming from?

addslashes, gpc magic quotes, php, wordpress, wpopac

3 thoughts on “Dang addslashes() And GPC Magic Quotes

  1. Pingback: Catching Bugs Before They Catch You « MaisonBisson.com

  2. Oh dang. It looks like it was something in my plugin that was adding the slashes to the search term and then writing it back to the global. Yup, it was my fault afterall.

Comments are closed.