Closed Bug 328434 Opened 19 years ago Closed 19 years ago

Move GroupIsActive into post_bug.cgi

Categories

(Bugzilla :: Bugzilla-General, enhancement)

2.23
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.0

People

(Reporter: mkanat, Assigned: mkanat)

References

Details

Attachments

(1 file, 1 obsolete file)

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.
Oh, actually, I mean post_bug.cgi. :-)
Assignee: general → mkanat
Summary: Move GroupIsActive into process_bug.cgi → Move GroupIsActive into post_bug.cgi
Attached patch v1 (obsolete) — Splinter Review
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)
Blocks: 328437
Status: NEW → ASSIGNED
Attachment #213022 - Flags: review?(wicked) → review+
Flags: approval?
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.
Flags: approval? → approval+
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: 19 years ago
Resolution: --- → FIXED
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.

Attachment

General

Created:
Updated:
Size: