]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 243764: Remove the Path-Info information from the URL as it causes unexpected...
authorFrédéric Buclin <LpSolit@gmail.com>
Tue, 24 Jul 2012 14:11:33 +0000 (16:11 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Tue, 24 Jul 2012 14:11:33 +0000 (16:11 +0200)
r=dkl a=LpSolit

Bugzilla/CGI.pm

index 67a2fbab39a9043e4778dee5d0e1f86990b59e21..b62d94c41798180215607b80a238fbe9e7881e4f 100644 (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' : '');