summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2012-07-24 16:11:33 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-07-24 16:11:33 +0200
commit61f02487ccf1b9e4d5198b3aa1a54eccd34d3ef7 (patch)
treed12bb98af7c4b943d86b4e2b4d6f828230de6658
parentd196515a44bc39a26e4b49f18aa9324cae5cc5a3 (diff)
downloadbugzilla-61f02487ccf1b9e4d5198b3aa1a54eccd34d3ef7.tar.gz
bugzilla-61f02487ccf1b9e4d5198b3aa1a54eccd34d3ef7.tar.xz
Bug 243764: Remove the Path-Info information from the URL as it causes unexpected behaviors
r=dkl a=LpSolit
-rw-r--r--Bugzilla/CGI.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm
index 67a2fbab3..b62d94c41 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' : '');