aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/install_install.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-09-25 11:25:58 +0200
committerJoas Schilling <nickvergessen@gmx.de>2013-09-25 12:02:01 +0200
commit625411587d5ef1e6a01383e150293b461c2331a5 (patch)
tree8c7671f4e9d401c16df2b023dd804826ccca4486 /phpBB/install/install_install.php
parented55626165ad402507864ab21bb2ee64a0d70cbd (diff)
downloadforums-625411587d5ef1e6a01383e150293b461c2331a5.tar
forums-625411587d5ef1e6a01383e150293b461c2331a5.tar.gz
forums-625411587d5ef1e6a01383e150293b461c2331a5.tar.bz2
forums-625411587d5ef1e6a01383e150293b461c2331a5.tar.xz
forums-625411587d5ef1e6a01383e150293b461c2331a5.zip
[ticket/11700] Escape Backslashes from schema_data.sql for MySQLi
PHPBB3-11700
Diffstat (limited to 'phpBB/install/install_install.php')
-rw-r--r--phpBB/install/install_install.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php
index 107da0f90a..c273660d08 100644
--- a/phpBB/install/install_install.php
+++ b/phpBB/install/install_install.php
@@ -1179,7 +1179,7 @@ class install_install extends module
// Ok tables have been built, let's fill in the basic information
$sql_query = file_get_contents('schemas/schema_data.sql');
- // Deal with any special comments
+ // Deal with any special comments and characters
switch ($data['dbms'])
{
case 'mssql':
@@ -1191,6 +1191,11 @@ class install_install extends module
case 'postgres':
$sql_query = preg_replace('#\# POSTGRES (BEGIN|COMMIT) \##s', '\1; ', $sql_query);
break;
+
+ case 'mysql':
+ case 'mysqli':
+ $sql_query = str_replace('\\', '\\\\', $sql_query);
+ break;
}
// Change prefix