From 22cfe5b291bf3189ea9acf8ddc079b2d5e1b6878 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" Date: Tue, 24 Jul 2012 14:16:35 +0000 Subject: [PATCH] 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 --- mozilla/webtools/bugzilla/.bzrrev | 2 +- mozilla/webtools/bugzilla/Bugzilla/CGI.pm | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/mozilla/webtools/bugzilla/.bzrrev b/mozilla/webtools/bugzilla/.bzrrev index 1415d0dc190..8097efbab8b 100644 --- a/mozilla/webtools/bugzilla/.bzrrev +++ b/mozilla/webtools/bugzilla/.bzrrev @@ -1 +1 @@ -8296 \ No newline at end of file +8297 \ No newline at end of file diff --git a/mozilla/webtools/bugzilla/Bugzilla/CGI.pm b/mozilla/webtools/bugzilla/Bugzilla/CGI.pm index 67a2fbab39a..b62d94c4179 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/CGI.pm +++ b/mozilla/webtools/bugzilla/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' : '');