From fcc0ac4b3e1add54072e879339d36945bd4ac297 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Tue, 25 Mar 2014 19:19:43 +0200 Subject: [PATCH] Check for /ct/... before /pb/... --- app.psgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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/$,; } -- 2.30.2