aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2011-11-13 16:11:32 +0100
committerJoas Schilling <nickvergessen@gmx.de>2011-11-14 15:10:25 +0100
commit3302305cd4a499603784aa87a40f5170d62a4f26 (patch)
treedbba0380db1bb2ff3f8194608521ba28c336adc1 /phpBB/install
parent6370ef27057643ee7fe0a6fbf2341c2ebdb57d4c (diff)
downloadforums-3302305cd4a499603784aa87a40f5170d62a4f26.tar
forums-3302305cd4a499603784aa87a40f5170d62a4f26.tar.gz
forums-3302305cd4a499603784aa87a40f5170d62a4f26.tar.bz2
forums-3302305cd4a499603784aa87a40f5170d62a4f26.tar.xz
forums-3302305cd4a499603784aa87a40f5170d62a4f26.zip
[ticket/9066] Move regex into get_preg_expression function and add tests
PHPBB3-9066
Diffstat (limited to 'phpBB/install')
-rw-r--r--phpBB/install/install_install.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php
index bb1d858cfc..ccdcf211f1 100644
--- a/phpBB/install/install_install.php
+++ b/phpBB/install/install_install.php
@@ -546,7 +546,7 @@ class install_install extends module
$error[] = $lang['INST_ERR_NO_DB'];
$connect_test = false;
}
- else if (!preg_match('#^[a-zA-Z][a-zA-Z0-9_]*$#', $data['table_prefix'], $result))
+ else if (!preg_match(get_preg_expression('table_prefix'), $data['table_prefix']))
{
$error[] = $lang['INST_ERR_DB_INVALID_PREFIX'];
$connect_test = false;