From fef1b966643505595cea027daed89a17b9544a59 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 9 Oct 2011 13:08:06 -0400 Subject: Fix typo in code --- src/controllers/Users.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/Users.class.php b/src/controllers/Users.class.php index 27efbcd..c7c2180 100644 --- a/src/controllers/Users.class.php +++ b/src/controllers/Users.class.php @@ -118,7 +118,7 @@ class Users extends Controller { } } - public function http404($routed, $rnemainder) { + public function http404($routed, $remainder) { $username = implode('/', $remainder); $this->showView('users/404', array('username'=>$username)); -- cgit v1.2.3-2-g168b From f641bd032ed5822ffd3a941732d26b23c92f9262 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 9 Oct 2011 13:09:13 -0400 Subject: Fix bug in Auth model; I used <= instead of < for isNameLegal length. --- src/models/Auth.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/models/Auth.class.php b/src/models/Auth.class.php index 25570bf..b51aef9 100644 --- a/src/models/Auth.class.php +++ b/src/models/Auth.class.php @@ -26,12 +26,12 @@ class Auth { // Current rules: // * Not in "$illegal_names" // * Does not contain '.' - // * Less <256 characters - $illegal_names = array('', 'new', 'index'); + // * Fewer than 256 characters + $illegal_names = array('', 'new', 'index', 'all'); return true && (!in_array($name, $illegal_names)) && (strpos($name,'.')===false) - && (strlen($name)<=256); + && (strlen($name)<256); } protected $db = null; -- cgit v1.2.3-2-g168b