]> iEval git - gruntmaster-page.git/commitdiff
Check for /ct/... before /pb/...
authorMarius Gavrilescu <marius@ieval.ro>
Tue, 25 Mar 2014 17:19:43 +0000 (19:19 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Tue, 25 Mar 2014 17:19:43 +0000 (19:19 +0200)
app.psgi

index 72558f139fff16a6e2514074d1cbf22d8ebf1ae1..8d1d1ec9fa39bea51aaa2d79ff309c34fb641f75 100644 (file)
--- 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/$,;
                }
This page took 0.022002 seconds and 4 git commands to generate.