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 Responses to “Dang addslashes() And GPC Magic Quotes”

  1. 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.

  2. I’ve been going crazy with all these slashes stuck in my database. It seems that the slashes are being added twice. How to prevent that?

Trackbacks

User contributed tags for this post:

htaccess magic quotes (51) - magic quotes gpc htaccess (35) - magic quotes (31) - htaccess magic quotes gpc (21) - magic quotes htaccess (19) - Magic Quotes GPC (17) - gpc magic quotes (14) - addslashes (13) - wordpress magic quotes (13) - ares ??? (12) - magic quotes hack (10) - magic (8) - hack magic quotes (8) - GPC Magic quotes htaccess (7) - turn off magic quotes htaccess (6) - Renault code calculator (6) - addslashes gpc (6) - hacking magic quotes (6) - ?????? ??????? (6) - Magic Quotes GPC off htaccess (5) - google magic quotes (5) - addslashes magic quotes (5) - wordpress (5) - magic quote htaccess (5) - hack addslashes (5) - how to turn off magic quotes (4) - magic quotes turn off (4) - Magic Quotes GPC on htaccess (4) - how to hack magic quotes (4) - htaccess magic quote (4) - add slashes and magic quotes (4) - htaccess addslashes (4) - magic gpc (4) - Funny Magic quotes (4) - htaccess magic quote gpc (4) - intellectual quotes (3) - addslashes magic (3) - 44391 (3) - Magic Quotes GPC htaccess off (3) - magic quotes php turn off (3) - turn off magic quotes gpc (3) - ??????? ?????? (3) - php turn off magic quotes (3) - magic quotes and add slashes php (3) - gpc magic (3) - magic quotes hacking (3) - magic quote bug (2) - turn magic quotes on htaccess (2) - disable magic quotes htaccess (2) - magic quotes off (2) - magic quotes gpc hack (2) - magic quotes addslashes (2) - magic quotes gpc off (2) - rss magic quote (2) - magic gpc quotes turn off php (2) - turn off magic quotes (2) - magic quotes in htaccess (2) - turn on magic quotes htaccess (2) - htaccess turn off magic quotes gpc (2) - magic quotes performance (2) - Magic quotes gpc is on (2) - magic quotes gpc in htaccess (2) - Turn Magic Quotes off in htaccess (2) - turning on magic quotes (2) - magic quotes wordpress (2) - magic addslashes (2) - php disable magic quotes htaccess (2) - Itchy Quotes (2) - php turn off addslashes (2) - magic quote gpc (2) - magic quotes how to (2) - my addslashes magic quotes (2) - htaccess quotes (2) - addslashes hack (2) - hacking sites with magic quotes (2) - htaccess magic quotes off (2) - pink world com (2) - wordpress addslashes (2) - Intellectual quotes and love and magic (2) - magic quotes for htaccess (1) - htaccess turn magic quotes off (1) - magic quotes gpc htaccess php5 (1) - addslashes gpc off (1) - magical quotes hacking (1) - addslashes 3 (1) - google Magic Quotes GPC htaccess (1) - turn on Magic Quotes GPC (1) - disable magic quotes (1) - htaccess gpc magic quotes (1) - php turn addslashes on (1) - turn on Magic Quotes GPC htaccess (1) - disable magic quotes wordpress (1) - magic quote gpc performance (1) - magic gpc turn off (1) - how to turn magic quotes off (1) - magic quotes gpc turn off in code (1) - magic quotes gpc wordpress (1) - how to turn Magic Quotes GPC off through htaccess (1) - turning on magic quotes gpc via htaccess (1) - magic quote htaccess on (1) - htaccess magic quotes on (1) - magic gpc quotes htaccess (1) - disable Magic Quotes htaccess php flag (1) - RSA 259:4 New Hampshire (1) - turn off addslashes (1) - turning off magic quotes, htaccess (1) - magic quotes gpc array addslashes (1) - addslashes off htaccess (1) - addslashes magic php (1) - wordpress 2 5 slashes quotes (1) - hacking addslashes (1) - hacking php addslashes (1) - rsa 259:4 (1) - rsa 259:4 a (1) - hack gpc (1) - addslashes magicquotes (1) - addslashes with magic gpc (1) - addslashes adding extra slashes with magic quotes off (1) - hack magic quotes php (1) - magic quotes off in htaccess (1) - facebook magic quotes (1) - turn magic quotes off htaccess (1) - turn magic quotes gpc off (1) - magic quotes htaccess on (1) - gpc magic quotes on htaccess (1) - addslashes hacking (1) - addslashes gpc quotes (1) - magic quotes gpc and htaccess (1) - magic quote php wordpress (1) - htacces magic quotes on (1) - dang quotes (1) - f e a r code (1) - magic quotes gpc hacking (1) - code for ares 4 0 0 (1) - ares 4 0 registration code (1) - magic quotes off htaccess (1) - htaccess magic (1) - mac php addslashes extra slashes (1) - turn magic quotes offhtaccess (1) - wordpress magic quotes htaccess (1) -