summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-10-09 13:09:13 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-10-09 13:09:13 -0400
commitf641bd032ed5822ffd3a941732d26b23c92f9262 (patch)
treeebdd8b3b0d466af7f5b20f3a1a81dfcae155ffef /src
parentfef1b966643505595cea027daed89a17b9544a59 (diff)
Fix bug in Auth model; I used <= instead of < for isNameLegal length.
Diffstat (limited to 'src')
-rw-r--r--src/models/Auth.class.php6
1 files 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;