X-Git-Url: http://git.ieval.ro/?p=gruntmaster-page.git;a=blobdiff_plain;f=app.psgi;h=e662e264184bbf6c93705e9105895590e38014f0;hp=2e3f6405c7b7848c5ee1e8ffde433430f92e2260;hb=dfc0018254d6a5e5aed4986ae317cff6a5a89b78;hpb=491e82eb192b76e7e8eece5aaf43b7aebb81a12d diff --git a/app.psgi b/app.psgi index 2e3f640..e662e26 100644 --- a/app.psgi +++ b/app.psgi @@ -61,6 +61,7 @@ sub mangle_request { $env->{'gruntmaster.problem'} = $1 if s,^/pb/$word/,/,; $env->{'gruntmaster.contest'} = $1 if s,^/ct/$word/,/,; $env->{'gruntmaster.user'} = $1 if s,^/us/$word/,/,; + $env->{'gruntmaster.page'} //= -1 if m,^/log/$,; } $app->($env); }