summaryrefslogtreecommitdiffstats
path: root/lib/install.php
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 /lib/install.php
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 'lib/install.php')
-rw-r--r--lib/install.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/install.php b/lib/install.php
index b9cf9cdd..0efdeaa7 100644
--- a/lib/install.php
+++ b/lib/install.php
@@ -256,6 +256,11 @@ function install_create_account($username,$password) {
return false;
}
+ if (is_numeric($username)) {
+ $GLOBALS['error']->add_error('general',"Error: Due to the incompotence of the programmer of this application usernames with all numbers will cause the world to come to an end, please add a letter");
+ return false;
+ }
+
$username = sql_escape($username,$dbh);
$password = sql_escape($password,$dbh);