aboutsummaryrefslogtreecommitdiff
path: root/cgi-bin
diff options
context:
space:
mode:
authorFrank Lichtenheld <frank@lichtenheld.de>2007-04-14 12:44:51 +0200
committerFrank Lichtenheld <frank@lichtenheld.de>2007-04-14 12:44:51 +0200
commitaed456717ac398a96918c7af8770c2733f1942d1 (patch)
tree251ab5b707490d17876e5f0fef8bc0a7ab7adeb1 /cgi-bin
parent46965dfc1ae42443015a3a52758d6fc123eda31c (diff)
Backwards compatibility mode for reportbug
Force exact=1 if UserAgent looks like reportbug. Otherwise it would get confused by the new behaviour to show non-exact matches per default, too. The real solution for this is of course to let it use another format instead of HTML.
Diffstat (limited to 'cgi-bin')
-rwxr-xr-xcgi-bin/dispatcher.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/cgi-bin/dispatcher.pl b/cgi-bin/dispatcher.pl
index 1f876de..db9d155 100755
--- a/cgi-bin/dispatcher.pl
+++ b/cgi-bin/dispatcher.pl
@@ -83,6 +83,11 @@ debug( "LANGUAGES=@LANGUAGES header=".
bindtextdomain ( 'pdo', $LOCALES );
textdomain( 'pdo' );
+if ($ENV{is_reportbug}) {
+ $input->param('exact', 1);
+ debug( "reportbug detected, set paramater exact to '1'" ) if DEBUG;
+}
+
my $what_to_do = 'show';
my $source = 0;
if (my $path = $input->path_info() || $input->param('PATH_INFO')) {