diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-01-14 06:23:42 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-01-14 06:23:42 +0000 |
commit | f0706c9b948272642ac21d58c7077cacc8f80883 (patch) | |
tree | 19f8cb0669b2d9473fb1dcfa25fe82795b50d2e7 /admin | |
parent | c19f5121801b2d0d8d922ccb68bfca8162d0df9c (diff) | |
download | ampache-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.php | 3 |
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)) { |