From cddf792dea0195783c20094023272c5713faf2b3 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Tue, 21 Feb 2006 10:32:19 +0000 Subject: - implementing David's proposed expression changes (some of them already noted within the events CCP) git-svn-id: file:///svn/phpbb/trunk@5566 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_admin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'phpBB/includes/functions_admin.php') diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php index 1aa18b467f..4221ac0cdc 100644 --- a/phpBB/includes/functions_admin.php +++ b/phpBB/includes/functions_admin.php @@ -1704,7 +1704,7 @@ function split_sql_file($sql, $delimiter) $total_quotes = preg_match_all("#'#", $tokens[$i], $matches); // Counts single quotes that are preceded by an odd number of backslashes, // which means they're escaped quotes. - $escaped_quotes = preg_match_all("#(?\\\\{2})*\\\\'/", $tokens[$i], $matches); $unescaped_quotes = $total_quotes - $escaped_quotes; @@ -1733,7 +1733,7 @@ function split_sql_file($sql, $delimiter) $total_quotes = preg_match_all("#'#", $tokens[$j], $matches); // Counts single quotes that are preceded by an odd number of backslashes, // which means they're escaped quotes. - $escaped_quotes = preg_match_all("#(?\\\\{2})*\\\\'/", $tokens[$j], $matches); $unescaped_quotes = $total_quotes - $escaped_quotes; -- cgit v1.2.1