Added htmlspecialchars() to debug output for AMO update script. See bug 357812.

git-svn-id: svn://10.0.0.236/trunk@214625 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mike.morgan%oregonstate.edu
2006-11-02 20:04:54 +00:00
parent 2a9ae2b7b2
commit 6218d16e39

View File

@@ -155,27 +155,27 @@ if ($debug == true) {
echo '<h1>Parameters</h1>';
echo '<pre>';
print_r($_GET);
htmlspecialchars(print_r($_GET));
echo '</pre>';
if (!empty($query)) {
echo '<h1>Query</h1>';
echo '<pre>';
echo $query;
echo htmlspecialchars($query);
echo '</pre>';
}
if (!empty($update)) {
echo '<h1>Result</h1>';
echo '<pre>';
print_r($update);
htmlspecialchars(print_r($update));
echo '</pre>';
}
if (!empty($errors) && is_array($errors)) {
echo '<h1>Errors Found</h1>';
echo '<pre>';
print_r($errors);
htmlspecialchars(print_r($errors));
echo '</pre>';
} else {
echo '<h1>No Errors Found</h1>';