Closed
Bug 328434
Opened 18 years ago
Closed 18 years ago
Move GroupIsActive into post_bug.cgi
Categories
(Bugzilla :: Bugzilla-General, enhancement)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.0
People
(Reporter: mkanat, Assigned: mkanat)
References
Details
Attachments
(1 file, 1 obsolete file)
2.23 KB,
patch
|
Details | Diff | Splinter Review |
The only script that uses the GroupIsActive sub from globals.pl is process_bug.cgi. Let's just move it into that script. Other people who need to find out if a group is active should create a group object and check the is_active bit on it.
Assignee | ||
Comment 1•18 years ago
|
||
Oh, actually, I mean post_bug.cgi. :-)
Assignee: general → mkanat
Summary: Move GroupIsActive into process_bug.cgi → Move GroupIsActive into post_bug.cgi
Assignee | ||
Comment 2•18 years ago
|
||
Okay, here's the patch. Very straightforward. I also changed the function to use DBI stuff instead of SendSQL. I tested this; it works.
Attachment #213022 -
Flags: review?(wicked)
Assignee | ||
Updated•18 years ago
|
Status: NEW → ASSIGNED
Updated•18 years ago
|
Attachment #213022 -
Flags: review?(wicked) → review+
Updated•18 years ago
|
Flags: approval?
Comment 3•18 years ago
|
||
Comment on attachment 213022 [details] [diff] [review] v1 >+sub GroupIsActive { >+ my ($group_id) = @_; >+ $group_id ||= 0; >+ trick_taint($group_id); Please write detaint_natural() instead of trick_taint() on checkin.
Updated•18 years ago
|
Flags: approval? → approval+
Assignee | ||
Comment 4•18 years ago
|
||
Okay, did the checkin fix. Checking in globals.pl; /cvsroot/mozilla/webtools/bugzilla/globals.pl,v <-- globals.pl new revision: 1.352; previous revision: 1.351 done Checking in post_bug.cgi; /cvsroot/mozilla/webtools/bugzilla/post_bug.cgi,v <-- post_bug.cgi new revision: 1.137; previous revision: 1.136 done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 5•18 years ago
|
||
Here's the version that I checked in, with the checkin fix.
Attachment #213022 -
Attachment is obsolete: true
You need to log in
before you can comment on or make changes to this bug.
Description
•