From 6218d16e392231da10b8a324770d4ec850021a00 Mon Sep 17 00:00:00 2001 From: "mike.morgan%oregonstate.edu" Date: Thu, 2 Nov 2006 20:04:54 +0000 Subject: [PATCH] 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 --- mozilla/webtools/addons/public/htdocs/update.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mozilla/webtools/addons/public/htdocs/update.php b/mozilla/webtools/addons/public/htdocs/update.php index 9bf5f1d3e35..0e19515faed 100644 --- a/mozilla/webtools/addons/public/htdocs/update.php +++ b/mozilla/webtools/addons/public/htdocs/update.php @@ -155,27 +155,27 @@ if ($debug == true) { echo '

Parameters

'; echo '
';
-    print_r($_GET);
+    htmlspecialchars(print_r($_GET));
     echo '
'; if (!empty($query)) { echo '

Query

'; echo '
';
-        echo $query;
+        echo htmlspecialchars($query);
         echo '
'; } if (!empty($update)) { echo '

Result

'; echo '
';
-        print_r($update);
+        htmlspecialchars(print_r($update));
         echo '
'; } if (!empty($errors) && is_array($errors)) { echo '

Errors Found

'; echo '
';
-        print_r($errors);
+        htmlspecialchars(print_r($errors));
         echo '
'; } else { echo '

No Errors Found

';