Bug 122650 - Use $0 when there is no script_filename

git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1830 6955db30-a419-402b-8a0d-67ecbb4d7f56
master
vfilippov 2013-10-01 11:16:46 +00:00
parent 8956dc8c99
commit 3466e734ff
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ sub new {
$self->charset(Bugzilla->params->{'utf8'} ? 'UTF-8' : '');
# Redirect to urlbase/sslbase if we are not viewing an attachment.
my $script = basename($ENV{SCRIPT_FILENAME});
my $script = basename($ENV{SCRIPT_FILENAME} ||= $0);
if ($self->url_is_attachment_base and $script ne 'attachment.cgi') {
$self->redirect_to_urlbase();
}