Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
9b28d0fd
Commit
9b28d0fd
authored
Jul 31, 2007
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 390148: Prevent Bugzilla from throwing warnings if we're on IIS
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=glob, a=mkanat
parent
f58650e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
Bugzilla.pm
Bugzilla.pm
+14
-0
No files found.
Bugzilla.pm
View file @
9b28d0fd
...
@@ -86,6 +86,20 @@ sub init_page {
...
@@ -86,6 +86,20 @@ sub init_page {
# PATH is undefined.
# PATH is undefined.
$ENV
{
'PATH'
}
=
''
;
$ENV
{
'PATH'
}
=
''
;
# IIS prints out warnings to the webpage, so ignore them, or log them
# to a file if the file exists.
if
(
$ENV
{
SERVER_SOFTWARE
}
&&
$ENV
{
SERVER_SOFTWARE
}
=~
/microsoft-iis/i
)
{
$SIG
{
__WARN__
}
=
sub
{
my
(
$msg
)
=
@_
;
my
$datadir
=
bz_locations
()
->
{
'datadir'
};
if
(
-
w
"$datadir/errorlog"
)
{
my
$warning_log
=
new
IO::
File
(
">>$datadir/errorlog"
);
print
$warning_log
$msg
;
$warning_log
->
close
();
}
};
}
# If Bugzilla is shut down, do not allow anything to run, just display a
# 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
# message to the user about the downtime and log out. Scripts listed in
# SHUTDOWNHTML_EXEMPT are exempt from this message.
# SHUTDOWNHTML_EXEMPT are exempt from this message.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment