summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-06-01 05:13:28 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-06-01 05:13:28 +0000
commit0d8e43fea5f354cbadd5feba27859622bbe85f78 (patch)
tree696c45e7ce9f2223a81a87112f0c12f433b55be0 /lib
parent7603e48e9e7f953e67e62143686c1b5228262385 (diff)
downloadampache-0d8e43fea5f354cbadd5feba27859622bbe85f78.tar.gz
ampache-0d8e43fea5f354cbadd5feba27859622bbe85f78.tar.bz2
ampache-0d8e43fea5f354cbadd5feba27859622bbe85f78.zip
missed a sql_escape on the installer
Diffstat (limited to 'lib')
-rw-r--r--lib/install.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/install.php b/lib/install.php
index 15e705d5..ede48a17 100644
--- a/lib/install.php
+++ b/lib/install.php
@@ -136,7 +136,7 @@ function install_insert_db($username,$password,$hostname,$database) {
if ($_REQUEST['db_user'] == 'create_db_user') {
$db_user = scrub_in($_REQUEST['db_username']);
$db_pass = scrub_in($_REQUEST['db_password']);
- $sql = "GRANT ALL PRIVILEGES ON " . sql_escape($database,$dbh) . ".* TO " .
+ $sql = "GRANT ALL PRIVILEGES ON " . Dba::escape($database) . ".* TO " .
"'" . Dba::escape($db_user) . "'@'" . Dba::escape($hostname) . "' IDENTIFIED BY '" . Dba::escape($db_pass) . "' WITH GRANT OPTION";
if (!$db_results = @mysql_query($sql, $dbh)) {