WordPress.org

Support

Support » Plugins and Hacks » how to suppress addslashes?

how to suppress addslashes?

  • Casey Bisson
    Member

    @misterbisson

    I’ve been trying to track down escapes/slashes being inserted in the $wp_query->query_vars but I’ve run into a wall.

    GPC magic quotes is disabled, and I can find properly UNescaped values in my $_GET outside the WordPress context. But within the WP context, things go wonky.

    All my $wp_query->query_vars are escaped, as are the $_GET values, but not $_REQUEST. That is, $_GET['var'] == \"quotedstring\" but $_REQUEST['var'] == "quotedstring"

    I really need UNescaped query values. I’m doing an array_map(‘stripslashes’, $wp_query->query_vars), but is there a way to get the values before they get slashed up?

    Tips, suggestions, help?

  • The topic ‘how to suppress addslashes?’ is closed to new replies.