From 394a014b635238518511e1c86ecdbdbe70593c5c Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Fri, 3 Nov 2006 07:31:59 +0000 Subject: Bug 353711: Move to Email:: modules for email sending Patch By Max Kanat-Alexander r=glob, a=myk --- Bugzilla.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Bugzilla.pm') diff --git a/Bugzilla.pm b/Bugzilla.pm index 374b06e12..5a9d23e14 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -81,6 +81,9 @@ sub init_page { # Some environment variables are not taint safe delete @::ENV{'PATH', 'IFS', 'CDPATH', 'ENV', 'BASH_ENV'}; + # Some modules throw undefined errors (notably File::Spec::Win32) if + # PATH is undefined. + $ENV{'PATH'} = ''; # If Bugzilla is shut down, do not allow anything to run, just display a # message to the user about the downtime and log out. Scripts listed in -- cgit v1.2.3-24-g4f1b