From: Frédéric Buclin Date: Tue, 24 Jul 2012 14:11:33 +0000 (+0200) Subject: Bug 243764: Remove the Path-Info information from the URL as it causes unexpected... X-Git-Tag: bugzilla-4.3.2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61f02487ccf1b9e4d5198b3aa1a54eccd34d3ef7;p=thirdparty%2Fbugzilla.git Bug 243764: Remove the Path-Info information from the URL as it causes unexpected behaviors r=dkl a=LpSolit --- diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm index 67a2fbab39..b62d94c417 100644 --- a/Bugzilla/CGI.pm +++ b/Bugzilla/CGI.pm @@ -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' : '');