From 62bb3cf7753c679e05f0206ad9163837d6abe0f3 Mon Sep 17 00:00:00 2001 From: Michal 'vorner' Vaner Date: Sat, 24 Apr 2010 21:35:08 +0200 Subject: [PATCH] Revert "Allow strange urls" This reverts commit fe914f97c86f4af82949e1ed6242271fc236dde8. It generates (probably) more 404s. --- PciIds/Html/Handler.pm | 3 --- 1 file changed, 3 deletions(-) diff --git a/PciIds/Html/Handler.pm b/PciIds/Html/Handler.pm index b1fb9fc..f9ca889 100644 --- a/PciIds/Html/Handler.pm +++ b/PciIds/Html/Handler.pm @@ -85,9 +85,6 @@ sub handler( $$ ) { my $action = $args->{'action'}; $action = '' unless( defined $action ); return HTTPRedirect( $req, protoName( $hasSSL ).'://'.$req->hostname().'/' ) if $req->uri() =~ /^\/(read|mods)\/?$/ && ( $action eq '' || $action eq 'list' ); - my $uri = $req->uri(); - $uri =~ s/(mods|read)\/\?/$1\/?PC\//; - return HTTPRedirect( $req, protoName( $hasSSL ).'://'.$req->hostname().'/'.$uri ) if $req->uri() =~ /^(read|mods)\/?/; my $method = $handlers{$req->method()}; return HTTP_METHOD_NOT_ALLOWED unless( defined $method );#Can't handle this method my $sub = $method->{$action}; -- 2.39.2