George S. Baugh 5 vuotta sitten
vanhempi
sitoutus
7ccccff51e
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      www/server.psgi

+ 1 - 0
www/server.psgi

@@ -135,6 +135,7 @@ my $app = sub {
     $query->{user}    = $active_user;
     $query->{domain}  = $env->{HTTP_HOST};
     $query->{route}   = $env->{REQUEST_URI};
+    $query->{route}   =~ s/\?\Q$env->{QUERY_STRING}\E//;
     $query->{scheme}  = $env->{'psgi.url_scheme'} // 'http';
 
     my $output =  $routes{$path}{callback}->($query, \&_render);