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 Comments

  1. Pingback by Catching Bugs Before They Catch You « MaisonBisson.com on August 23, 2006 8:48 pm

    [...] I got itchy about magic quotes the other day because it’s the cause (through a fairly long cascade of errors) of some performance problems and runaways I’ve been seeing lately (pictured above). [...]

  2. Comment by Casey Bisson on October 21, 2006 10:47 pm

    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.

  3. Comment by What is php? on March 8, 2007 2:04 am

    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?

Comments RSS TrackBack Identifier URI

Leave a comment

 

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) - addslashes (13) - gpc magic quotes (13) - wordpress magic quotes (12) - ares ??? (12) - magic quotes hack (9) - hack magic quotes (8) - magic (7) - GPC Magic quotes htaccess (7) - Renault code calculator (6) - ?????? ??????? (6) - hacking magic quotes (6) - addslashes gpc (6) - turn off magic quotes htaccess (6) - magic quote htaccess (5) - Magic Quotes GPC off htaccess (5) - google magic quotes (5) - Funny Magic quotes (4) - htaccess addslashes (4) - how to hack magic quotes (4) - magic quotes turn off (4) - add slashes and magic quotes (4) - htaccess magic quote gpc (4) - Magic Quotes GPC on htaccess (4) - addslashes magic quotes (4) - how to turn off magic quotes (4) - magic gpc (4) - htaccess magic quote (4) - intellectual quotes (3) - gpc magic (3) - addslashes magic (3) - Magic Quotes GPC htaccess off (3) - 44391 (3) - magic quotes and add slashes php (3) - ??????? ?????? (3) - turn off magic quotes gpc (3) - hack addslashes (3) - php turn off magic quotes (3) - magic quotes php turn off (3) - htaccess quotes (2) - Magic quotes gpc is on (2) - magic quotes in htaccess (2) - Intellectual quotes and love and magic (2) - turn magic quotes on htaccess (2) - rss magic quote (2) - magic gpc quotes turn off php (2) - php turn off addslashes (2) - magic quotes performance (2) - addslashes hack (2) - disable magic quotes htaccess (2) - magic quotes off (2) - magic quotes gpc in htaccess (2) - magic quotes hacking (2) - magic quote bug (2) - magic quotes gpc hack (2) - magic quotes addslashes (2) - Turn Magic Quotes off in htaccess (2) - magic quotes gpc off (2) - php disable magic quotes htaccess (2) - turn on magic quotes htaccess (2) - htaccess turn off magic quotes gpc (2) - turn off magic quotes (2) - htaccess magic quotes off (2) - www.dang porno.com (2) - my addslashes magic quotes (2) - magic quotes how to (2) - turning on magic quotes (2) - magic quote gpc (2) - magic addslashes (2) - pink world com (2) - time passing quote (2) - Itchy Quotes (2) - turn on Magic Quotes GPC htaccess (1) - magic quote htaccess on (1) - turning on magic quotes gpc via htaccess (1) - how to turn Magic Quotes GPC off through htaccess (1) - turning off magic quotes, htaccess (1) - disable Magic Quotes htaccess php flag (1) - magic quotes gpc turn off in code (1) - magic quotes gpc array addslashes (1) - how to turn magic quotes off (1) - php turn addslashes on (1) - magic quote gpc performance (1) - magic quotes gpc htaccess php5 (1) - turn off addslashes (1) - www.89.càm (1) - magic quotes criticism (1) - htaccess magic quotes php (1) - magic movies sekx (1) - cache NpZNjn6W9VMJ s funnyfree net r02 sex com 82 html  (1) - addslashes magicquotes (1) - disable magic quotes wordpress (1) - magic porno.com (1) - disable magic quotes (1) - magic gpc quotes htaccess (1) - addslashes with magic gpc (1) - addslashes gpc off (1) - addslashes adding extra slashes with magic quotes off (1) - turn on Magic Quotes GPC (1) - magic quotes for htaccess (1) - addslashes 3 (1) - htaccess gpc magic quotes (1) - magic quotes wordpress (1) - PHP addslashes magic quotes (1) - magic gpc turn off (1) - f e a r code (1) - addslashes gpc quotes (1) - addslashes hacking (1) - gpc magic quotes on htaccess (1) - magic quotes gpc hacking (1) - code for ares 4 0 0 (1) - ares 4 0 registration code (1) - magic quotes off htaccess (1) - facebook magic quotes (1) - magic quotes htaccess on (1) - turn magic quotes gpc off (1) - htaccess magic (1) - mac php addslashes extra slashes (1) - turn magic quotes offhtaccess (1) - turn magic quotes off htaccess (1) - htacces magic quotes on (1) - mss (1) - dang quotes (1) - hacking sites with magic quotes (1) - htaccess magic quotes on (1) - magic quotes gpc wordpress (1) - magical quotes hacking (1) - addslashes off htaccess (1) - addslashes magic php (1) - wordpress 2 5 slashes quotes (1) - ares xxl (1) - hacking addslashes (1) - hacking php addslashes (1) - google Magic Quotes GPC htaccess (1) - hack magic quotes php (1) - htaccess turn magic quotes off (1) - ares xxl com (1) - wordpress magic quotes htaccess (1) - magic quotes gpc and htaccess (1) - magic quotes off in htaccess (1) - magic quote php wordpress (1) - ??? ?????? (1) - magic quotes 1 (1) - turn off gpc magic quotes htaccess (1) - turning off gpc magic quotes with htaccess (1) -