diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2006-02-21 10:32:19 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-02-21 10:32:19 +0000 |
commit | cddf792dea0195783c20094023272c5713faf2b3 (patch) | |
tree | 2d3dbb503514b53e8c9c8b842c79681c5e7136a3 /phpBB/includes/functions_admin.php | |
parent | 22b9a9d886431af57985d11a23f9f2ee60a6bc5a (diff) | |
download | forums-cddf792dea0195783c20094023272c5713faf2b3.tar forums-cddf792dea0195783c20094023272c5713faf2b3.tar.gz forums-cddf792dea0195783c20094023272c5713faf2b3.tar.bz2 forums-cddf792dea0195783c20094023272c5713faf2b3.tar.xz forums-cddf792dea0195783c20094023272c5713faf2b3.zip |
- 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
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r-- | phpBB/includes/functions_admin.php | 4 |
1 files changed, 2 insertions, 2 deletions
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("#(?<!\\\\)(\\\\\\\\)*\\\\'#", $tokens[$i], $matches); + $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("#(?<!\\\\)(\\\\\\\\)*\\\\'#", $tokens[$j], $matches); + $escaped_quotes = preg_match_all("/(?<!\\\\)(?>\\\\{2})*\\\\'/", $tokens[$j], $matches); $unescaped_quotes = $total_quotes - $escaped_quotes; |