What's calling addslashes() on $_REQUEST ? #105
Labels
help wanted
Needs documentation
Needs to be documented before it can be closed
Priority: A
question
Severity: 4
When tracing starts up the
trace_startup()
function traces values in$_SERVER
and$_REQUEST
if the trace level is BW_TRACE_INFO or higher.The values in
$_REQUEST
may look like this.$_REQUEST is a combination of $_GET and $_POST
If the trace level is BW_TRACE_DEBUG or higher then these two arrays are also traced.
In later processing I've noticed that the values in $_REQUEST have been escaped using
addslashes()
.Notice that the single quotes have been escaped with a backslash.
This is the effect of
addslashes()
/wp_slash()
.addslashes
If we attempt to compare values extracted from this array with the originals we may have to
stripslashes()
/wp_unslash()
.The questions I have are:
Finding the answers to the above questions should help the debugger determine what to do to fix their code.
The text was updated successfully, but these errors were encountered: