From 9aa9cb4bb6d9ad21db25bf24e70ed35b92c0f1a9 Mon Sep 17 00:00:00 2001 From: David M Date: Sat, 3 Jun 2006 20:34:40 +0000 Subject: DB stuff, nothing cool at all unless you use Oracle. git-svn-id: file:///svn/phpbb/trunk@6006 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_admin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'phpBB/includes/functions_admin.php') 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); -- cgit v1.2.1