Closed Bug 467506 Opened 16 years ago Closed 16 years ago

-d $dir check in add_language_set should not be commented-out

Categories

(Bugzilla :: Bugzilla-General, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED
Bugzilla 3.2

People

(Reporter: mkanat, Assigned: mkanat)

Details

Attachments

(1 file)

Attached patch v1Splinter Review
Apparently when I wrote Bugzilla::Install::Util::_add_language_set, I commented-out a check that makes sure that a directory actually *exists* before pushing it onto the template include path stack. I probably did this for testing purposes, to make sure that the directories all existed in the right order, but I forgot to uncomment the check before the code was checked in.

In any case, I'm sure that it's much better to do this check just once at this point as opposed to every time we load a template or string. Also, "-d $dir" is the reason that it's safe to do our trick_taint--otherwise we could be getting something unexpected out of the filesystem (though there are no security implications to this bug, as far as I'm aware).
Attachment #350932 - Flags: review?(LpSolit)
Comment on attachment 350932 [details] [diff] [review]
v1

Yes, makes sense to me. r=LpSolit
Attachment #350932 - Flags: review?(LpSolit) → review+
Flags: approval3.2+
Flags: approval+
tip:

Checking in Bugzilla/Install/Util.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Install/Util.pm,v  <--  Util.pm
new revision: 1.16; previous revision: 1.15
done

3.2:

Checking in Bugzilla/Install/Util.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Install/Util.pm,v  <--  Util.pm
new revision: 1.14.2.2; previous revision: 1.14.2.1
done
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: