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
Posted August 22, 2006 by Casey Bisson
Categories: Libraries & Networked Information, Technology. Tags: addslashes, gpc magic quotes, php, wordpress, wpopac.
3 Comments
Comments RSS
TrackBack Identifier URI
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) - wordpress magic quotes (13) - addslashes (13) - ares ??? (12) - magic quotes hack (10) - hack magic quotes (8) - magic (8) - GPC Magic quotes htaccess (7) - ?????? ??????? (6) - addslashes gpc (6) - Renault code calculator (6) - turn off magic quotes htaccess (6) - hacking magic quotes (6) - magic quote htaccess (5) - hack addslashes (5) - google magic quotes (5) - Magic Quotes GPC off htaccess (5) - wordpress (5) - addslashes magic quotes (5) - htaccess addslashes (4) - Funny Magic quotes (4) - how to hack magic quotes (4) - Magic Quotes GPC on htaccess (4) - htaccess magic quote (4) - how to turn off magic quotes (4) - add slashes and magic quotes (4) - htaccess magic quote gpc (4) - magic quotes turn off (4) - magic gpc (4) - magic quotes and add slashes php (3) - magic quotes php turn off (3) - Magic Quotes GPC htaccess off (3) - gpc magic (3) - php turn off magic quotes (3) - ??????? ?????? (3) - turn off magic quotes gpc (3) - addslashes magic (3) - 44391 (3) - magic quotes hacking (3) - intellectual quotes (3) - turn magic quotes on htaccess (2) - hacking sites with magic quotes (2) - php disable magic quotes htaccess (2) - Turn Magic Quotes off in htaccess (2) - magic quotes gpc off (2) - htaccess turn off magic quotes gpc (2) - turn on magic quotes htaccess (2) - magic quotes performance (2) - magic quotes wordpress (2) - php turn off addslashes (2) - magic quotes gpc hack (2) - addslashes hack (2) - magic quote bug (2) - disable magic quotes htaccess (2) - magic quotes gpc in htaccess (2) - htaccess quotes (2) - turn off magic quotes (2) - magic quotes addslashes (2) - magic quotes in htaccess (2) - magic quotes off (2) - rss magic quote (2) - magic gpc quotes turn off php (2) - htaccess magic quotes off (2) - turning on magic quotes (2) - wordpress addslashes (2) - Itchy Quotes (2) - magic addslashes (2) - my addslashes magic quotes (2) - pink world com (2) - php flag magic quotes gpc off (2) - Magic quotes gpc is on (2) - Intellectual quotes and love and magic (2) - magic quote gpc (2) - magic quotes how to (2) - turn on Magic Quotes GPC htaccess (1) - magic gpc turn off (1) - wordpess magic_quotes (1) - htaccess magic quotes on (1) - google Magic Quotes GPC htaccess (1) - hack gpc (1) - php addslashes hack (1) - magic quotes gpc wordpress (1) - magic quotes for htaccess (1) - magical quotes hacking (1) - disable Magic Quotes htaccess php flag (1) - .htaccess gpc php (1) - magic quote htaccess on (1) - magic gpc quotes htaccess (1) - magic quotes gpc addslashes (1) - htaccess gpc magic quotes (1) - addslashes 3 (1) - turn on Magic Quotes GPC (1) - php 5.1.6 addslashes problem (1) - addslashes gpc off (1) - .htaccess gpc quotes off (1) - turning on magic quotes gpc via htaccess (1) - how to turn Magic Quotes GPC off through htaccess (1) - magic quotes gpc htaccess php5 (1) - wordpress 2 5 slashes quotes (1) - magic quote gpc performance (1) - mysql addslashes hack (1) - how to turn magic quotes off (1) - php turn addslashes on (1) - exemplo de .htaccess php Magic Quotes GPC (1) - magic quotes gpc turn off in code (1) - htaccess turn magic quotes off (1) - magic quotes gpc array addslashes (1) - addslashes off htaccess (1) - turn magic quotes offhtaccess (1) - mac php addslashes extra slashes (1) - htaccess magic (1) - magic quotes off htaccess (1) - ares 4 0 registration code (1) - addslashes magic php (1) - magic quotes off in htaccess (1) - ares xxl (1) - code for ares 4 0 0 (1) - magic quotes gpc hacking (1) - hacking addslashes (1) - hacking php addslashes (1) - f e a r code (1) - dang quotes (1) - hack magic quotes php (1) - turning off magic quotes, htaccess (1) - htacces magic quotes on (1) - magic quote php wordpress (1) - wordpress magic quotes htaccess (1) - magic quotes gpc and htaccess (1) - addslashes magicquotes (1) - addslashes gpc quotes (1) - addslashes hacking (1) - gpc magic quotes on htaccess (1) - magic quotes htaccess on (1) - turn magic quotes gpc off (1) - addslashes with magic gpc (1) - addslashes adding extra slashes with magic quotes off (1) - turn magic quotes off htaccess (1) -
[...] 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). [...]
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.
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?