]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 313941: sanitycheck should quote bad values so empty values are apparent
authorwurblzap%gmail.com <>
Fri, 28 Oct 2005 17:25:44 +0000 (17:25 +0000)
committerwurblzap%gmail.com <>
Fri, 28 Oct 2005 17:25:44 +0000 (17:25 +0000)
Patch by Matt McHenry <mmchenry@carnegielearning.com>
r=wurblzap, a=justdave

sanitycheck.cgi

index 0ae58591c58c8635036ce2ec3e71b6aff37b2a54..317464749b99bcc705b99e6f934b7430a2987ad2 100755 (executable)
@@ -302,7 +302,7 @@ sub CrossCheck {
         while (MoreSQLData()) {
             my ($value, $key) = FetchSQLData();
             if (!$exceptions{$value}) {
-                my $alert = "Bad value $value found in $refertable.$referfield";
+                my $alert = "Bad value &quot;$value&quot; found in $refertable.$referfield";
                 if ($keyname) {
                     if ($keyname eq 'bug_id') {
                         $alert .= ' (bug ' . BugLink($key) . ')';
@@ -463,7 +463,7 @@ sub DoubleCrossCheck {
         while (MoreSQLData()) {
             my ($value1, $value2, $key) = FetchSQLData();
  
-            my $alert = "Bad values $value1, $value2 found in " .
+            my $alert = "Bad values &quot;$value1&quot;, &quot;$value2&quot; found in " .
                 "$refertable.$referfield1 / $refertable.$referfield2";
             if ($keyname) {
                 if ($keyname eq 'bug_id') {