]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 109690: long_list.cgi was not validating that the bug ID parameter was...
authorjustdave%syndicomm.com <>
Sat, 17 Nov 2001 16:34:46 +0000 (16:34 +0000)
committerjustdave%syndicomm.com <>
Sat, 17 Nov 2001 16:34:46 +0000 (16:34 +0000)
Patch by Brad Baetz
r= justdave, gerv

long_list.cgi

index f6182d4393b5ff4fa1a4c62c62e8716fba6d8d39..b74e1378b2e1765b83ddb41f55a019a5320851a5 100755 (executable)
@@ -32,7 +32,6 @@ require "CGI.pl";
 sub sillyness {
     my $zz;
     $zz = $::legal_keywords;
-    $zz = $::userid;
     $zz = $::usergroupset;
     $zz = %::FORM;
 }
@@ -69,13 +68,13 @@ select
   bugs.status_whiteboard,
   bugs.keywords
 from bugs,profiles assign,profiles report
-where assign.userid = bugs.assigned_to and report.userid = bugs.reporter and";
+where assign.userid = bugs.assigned_to and report.userid = bugs.reporter and
+bugs.groupset & $::usergroupset = bugs.groupset and";
 
 $::FORM{'buglist'} = "" unless exists $::FORM{'buglist'};
 foreach my $bug (split(/:/, $::FORM{'buglist'})) {
     detaint_natural($bug) || next;
-    SendSQL(SelectVisible("$generic_query bugs.bug_id = $bug",
-                          $::userid, $::usergroupset));
+    SendSQL("$generic_query bugs.bug_id = $bug");
 
     my @row;
     if (@row = FetchSQLData()) {
@@ -106,12 +105,12 @@ foreach my $bug (split(/:/, $::FORM{'buglist'})) {
             }
             print "<TD><B>QA Contact:</B> $name\n";
         }
-        print "<TR><TD COLSPAN=2><B>Component:</B> $component\n";
+        print "<TR><TD><B>Component:</B> $component\n";
         if (Param("usetargetmilestone")) {
-            print "<TD COLSPAN=2><B>Target Milestone:</B> $target_milestone\n";
+            print "<TD><B>Target milestone:</B>$target_milestone\n";
         }
         print "<TR><TD COLSPAN=6><B>URL:</B>&nbsp;";
-        print "<A HREF=\"" . $url . "\">" .  html_quote($url) . "</A>\n"; 
+       print "<A HREF=\"" . $url . "\">" .  html_quote($url) . "</A>\n"; 
         print "<TR><TD COLSPAN=6><B>Summary:</B> " . html_quote($shortdesc) . "\n";
         if (@::legal_keywords) {
             print "<TR><TD><B>Keywords: </B>$keywords</TD></TR>\n";