X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=app.psgi;h=8d1d1ec9fa39bea51aaa2d79ff309c34fb641f75;hb=fcc0ac4b3e1add54072e879339d36945bd4ac297;hp=72558f139fff16a6e2514074d1cbf22d8ebf1ae1;hpb=e63eaf407e505337cd02d7bc7ca3010ab6337348;p=plack-app-gruntmaster.git diff --git a/app.psgi b/app.psgi index 72558f1..8d1d1ec 100644 --- a/app.psgi +++ b/app.psgi @@ -70,8 +70,8 @@ sub mangle_request { my ($number, $word) = (qr,(\d+),a, qr,(\w+),a); for ($env->{PATH_INFO}) { $env->{'gruntmaster.page'} = $1 if s,/page/$number$,/,; - $env->{'gruntmaster.problem'} = $1 if s,^/pb/$word/,/,; $env->{'gruntmaster.contest'} = $1 if s,^/ct/$word/,/,; + $env->{'gruntmaster.problem'} = $1 if s,^/pb/$word/,/,; $env->{'gruntmaster.user'} = $1 if s,^/us/$word/,/,; $env->{'gruntmaster.page'} //= -1 if m,^/log/$,; }