OtevřenáVíra

Je možné sdílet víru bez omezení?

Uživatelské nástroje

Nástroje pro tento web


wiki:syntax

Toto je starší verze dokumentu!


I posted the flloowing at keeyai's website as well, but just thought I'd post here to let those landing here looking for info.I too am experiencing the addslashes bug which seems to be stemming from wp-settings.php around line 630 in WordPress 2.9.1: Escape with wpdb.$_GET = add_magic_quotes($_GET );$_POST = add_magic_quotes($_POST );$_COOKIE = add_magic_quotes($_COOKIE);$_SERVER = add_magic_quotes($_SERVER);Wrapping this with an if statement to check if the cookie is from Dokuwiki or somewhere else seems to fix the problem and I haven’t seen any adverse effects yet. The final code looks like:if (!$_COOKIE[DokuWiki]) { Escape with wpdb.$_GET = add_magic_quotes($_GET );$_POST = add_magic_quotes($_POST );$_COOKIE = add_magic_quotes($_COOKIE);$_SERVER = add_magic_quotes($_SERVER);}Basically just skips WordPress’s slashing if the Get/Post/Cookie request comes from Dokuwiki.

wiki/syntax.1352803987.txt.gz · Poslední úprava: 13.11.2012 11:53 autor: 199.176.179.250