diff options
author | Brion Vibber <brion@pobox.com> | 2010-11-29 16:47:51 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-11-29 16:47:51 -0800 |
commit | 8161bf079758f5a07549081c24a5e68ec66113b6 (patch) | |
tree | 99973c28b101a294936886ac612d72fef9ba2229 /classes | |
parent | f1f67c2af542aabea4e93d7df0d2e917658e6a83 (diff) | |
parent | 3be352551a979cc3e89e0a2b8f950949b932a304 (diff) |
Merge branch 'namecase' into 0.9.x
Diffstat (limited to 'classes')
-rw-r--r-- | classes/User.php | 10 |
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. |