Bug 243764: Remove the Path-Info information from the URL as it causes unexpected behaviors

r=dkl a=LpSolit


git-svn-id: svn://10.0.0.236/trunk@264057 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkanat%bugzilla.org
2012-07-24 14:16:35 +00:00
parent 6ab4f36cd2
commit 22cfe5b291
2 changed files with 6 additions and 1 deletions

View File

@@ -57,6 +57,11 @@ sub new {
# Make sure our outgoing cookie list is empty on each invocation
$self->{Bugzilla_cookie_list} = [];
# Path-Info is of no use for Bugzilla and interacts badly with IIS.
# Moreover, it causes unexepected behaviors, such as totally breaking
# the rendering of pages. Skip it!
print $self->redirect($self->url(-path => 0, -query => 1)) if $self->path_info;
# Send appropriate charset
$self->charset(Bugzilla->params->{'utf8'} ? 'UTF-8' : '');