I’ve been trying to track down escapes/slashes being inserted in the
$wp_query->query_varsbut I’ve run into a wall.
GPC magic quotes is disabled, and I can find properly UNescaped values in my
$_GEToutside the WordPress context. But within the WP context, things go wonky.
$wp_query->query_varsare escaped, as are the
$_GETvalues, 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.