]> mj.ucw.cz Git - pciids.git/commitdiff
Revert "Allow strange urls"
authorMichal 'vorner' Vaner <vorner@ucw.cz>
Sat, 24 Apr 2010 19:35:08 +0000 (21:35 +0200)
committerMichal 'vorner' Vaner <vorner@ucw.cz>
Sat, 24 Apr 2010 19:35:08 +0000 (21:35 +0200)
This reverts commit fe914f97c86f4af82949e1ed6242271fc236dde8.

It generates (probably) more 404s.

PciIds/Html/Handler.pm

index b1fb9fc61edcc46185a84dc9c9d028fc0c0c441d..f9ca889e5dd2830b303ac5e642ab7f2a3fd89911 100644 (file)
@@ -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};