From: Marius Gavrilescu Date: Tue, 25 Mar 2014 17:19:43 +0000 (+0200) Subject: Check for /ct/... before /pb/... X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=fcc0ac4b3e1add54072e879339d36945bd4ac297;p=gruntmaster-page.git Check for /ct/... before /pb/... --- 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/$,; }