]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 319086: editusers.cgi throws an error when editusers.cgi is given an invalid...
authorlpsolit%gmail.com <>
Mon, 12 Dec 2005 11:26:58 +0000 (11:26 +0000)
committerlpsolit%gmail.com <>
Mon, 12 Dec 2005 11:26:58 +0000 (11:26 +0000)
editusers.cgi

index 1d10304ab75422b11c4c3c5b1274531125ca85c2..c7701656bd983ccc3a2972324ff24e7a348d0e63 100755 (executable)
@@ -319,7 +319,9 @@ if ($action eq 'list') {
           $matchstr = '.'
                 unless $matchstr;
       } else {
-          die "Unknown match type";
+          print "Unknown match type: " . html_quote($::FORM{'matchtype'});
+          PutTrailer();
+          exit;
       }
       $query .= SqlQuote($matchstr) . " ORDER BY login_name";
     } elsif (exists $::FORM{'group'}) {
@@ -328,7 +330,9 @@ if ($action eq 'list') {
           "FROM profiles, user_group_map WHERE profiles.userid = user_group_map.user_id
            AND group_id=" . $::FORM{'group'} . " ORDER BY login_name";
     } else {
-      die "Missing parameters";
+      print "The search cannot be executed. There are missing parameters.";
+      PutTrailer();
+      exit;
     }
 
     SendSQL($query);