Typo
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 1 Jun 2008 21:49:26 +0000 (23:49 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 1 Jun 2008 21:49:26 +0000 (23:49 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
class.xorg.auth.php

index adba0c1..fd300d4 100644 (file)
@@ -212,7 +212,7 @@ class xorgAuth extends dcAuth {
 
   public function userID() {
     $this->buildFromSession();
-    $isadmin = preg_match('@/admin/[^/]\.php$@i', $_SERVER['SCRIPT_FILENAME']);
+    $isadmin = preg_match('@/admin/[^/]+\.php$@i', $_SERVER['SCRIPT_FILENAME']);
     if (!$isadmin) {
       return null;
     }