summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-11-29 11:57:27 -0800
committerBrion Vibber <brion@pobox.com>2010-11-29 11:57:27 -0800
commit6e249b4ab5aa292d78cfaa9be9dce8706e27ad80 (patch)
treec8a52cbad13113a612b18b4bca06b69091bd981a
parentb7e0078d1078c045c2f609d948905e73eb184add (diff)
doc comments on User::allowed_nickname
-rw-r--r--classes/User.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/classes/User.php b/classes/User.php
index 964bc3e7f..92180a9fb 100644
--- a/classes/User.php
+++ b/classes/User.php
@@ -116,6 +116,16 @@ class User extends Memcached_DataObject
return $result;
}
+ /**
+ * Check whether the given nickname is potentially usable, or if it's
+ * excluded by any blacklists on this system.
+ *
+ * WARNING: INPUT IS NOT VALIDATED OR NORMALIZED. NON-NORMALIZED INPUT
+ * OR INVALID INPUT MAY LEAD TO FALSE RESULTS.
+ *
+ * @param string $nickname
+ * @return boolean true if clear, false if blacklisted
+ */
static function allowed_nickname($nickname)
{
// XXX: should already be validated for size, content, etc.