how to suppress addslashes? (1 post)

  1. Casey Bisson
    Posted 9 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic