summaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-01-14 06:23:42 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-01-14 06:23:42 +0000
commitf0706c9b948272642ac21d58c7077cacc8f80883 (patch)
tree19f8cb0669b2d9473fb1dcfa25fe82795b50d2e7 /admin
parentc19f5121801b2d0d8d922ccb68bfca8162d0df9c (diff)
downloadampache-f0706c9b948272642ac21d58c7077cacc8f80883.tar.gz
ampache-f0706c9b948272642ac21d58c7077cacc8f80883.tar.bz2
ampache-f0706c9b948272642ac21d58c7077cacc8f80883.zip
fix an issue with all numeric usernames... by preventing them for now this will be really fixed in the next version
Diffstat (limited to 'admin')
-rw-r--r--admin/users.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/admin/users.php b/admin/users.php
index 962d2add..4aa8aff8 100644
--- a/admin/users.php
+++ b/admin/users.php
@@ -111,6 +111,9 @@ switch ($action) {
if (empty($username)) {
$GLOBALS['error']->add_error('username',_("Error Username Required"));
}
+ if (is_numeric($username)) {
+ $GLOBALS['error']->add_error('username',"Error: Due to the incompetance of the programmer numeric usernames would cause the whole of existance to cease. Please add a letter or something");
+ }
/* make sure the username doesn't already exist */
if (!check_username($username)) {