Commit a81fbf02 by Scott

Escape output from qa_debug

parent b2128b01
...@@ -1868,7 +1868,7 @@ function qa_opt($name, $value = null) ...@@ -1868,7 +1868,7 @@ function qa_opt($name, $value = null)
function qa_debug($var) function qa_debug($var)
{ {
echo "\n" . '<pre style="padding: 10px; background-color: #eee; color: #444; font-size: 11px; text-align: left">'; echo "\n" . '<pre style="padding: 10px; background-color: #eee; color: #444; font-size: 11px; text-align: left">';
echo $var === null ? 'NULL' : print_r($var, true); echo $var === null ? 'NULL' : htmlspecialchars(print_r($var, true), ENT_COMPAT|ENT_SUBSTITUTE);
echo '</pre>' . "\n"; echo '</pre>' . "\n";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment