install.php
changeset 266 917dcc6c4ceb
parent 254 2b48ca9ce4d3
parent 262 596945fa6e56
child 271 f088805540ae
--- a/install.php	Sat Nov 17 22:12:31 2007 -0500
+++ b/install.php	Sat Nov 17 22:25:37 2007 -0500
@@ -730,7 +730,7 @@
           die('root'.$e);
       }
       $rsp = 'good';
-      $q = mysql_query('USE '.$dbname, $conn);
+      $q = mysql_query('USE `' . mysql_real_escape_string($dbname) . '`;', $conn);
       if(!$q)
       {
         $e = mysql_error();
@@ -763,7 +763,7 @@
         else
           die('auth'.$e);
       }
-      $q = mysql_query('USE '.$dbname, $conn);
+      $q = mysql_query('USE `' . mysql_real_escape_string($dbname) . '`;', $conn);
       if(!$q)
       {
         $e = mysql_error();