aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r--phpBB/includes/functions_admin.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index d4eb271260..82479f0fcf 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -1792,7 +1792,8 @@ function remove_remarks(&$sql)
function split_sql_file($sql, $delimiter)
{
$sql = str_replace("\r" , '', $sql);
- $data = preg_split('/' . $delimiter . '$/m', $sql);
+ $data = preg_split('/' . preg_quote($delimiter, '/') . '$/m', $sql);
+
foreach ($data as $key => $value)
{
$data[$key] = trim($value);