diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-04-11 01:56:54 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-04-11 01:56:54 +0000 |
commit | e1813f532f7ab0ad82b829ba4034181236e0f5ba (patch) | |
tree | aca9d1470bc7b2f648de5ffa31683a76d658cb56 /lib/install.php | |
parent | 0857968b961cc875c481ea603f0a8858433c4db3 (diff) | |
download | ampache-e1813f532f7ab0ad82b829ba4034181236e0f5ba.tar.gz ampache-e1813f532f7ab0ad82b829ba4034181236e0f5ba.tar.bz2 ampache-e1813f532f7ab0ad82b829ba4034181236e0f5ba.zip |
fixed db name validity and paging being forgotten on back
Diffstat (limited to 'lib/install.php')
-rw-r--r-- | lib/install.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/install.php b/lib/install.php index 21c4f616..6bfc2f6f 100644 --- a/lib/install.php +++ b/lib/install.php @@ -99,7 +99,7 @@ function install_check_status($configfile) { function install_insert_db($username,$password,$hostname,$database) { // Make sure that the database name is valid - $is_valid = preg_match("/([^\d\w\_])/",$database,$matches); + $is_valid = preg_match("/([^\d\w\_\-])/",$database,$matches); if (count($matches)) { Error::add('general','Error: Database name invalid must not be a reserved word, and must be Alphanumeric'); |