the prefix work: fix it to be dependent on a board_regex config value
This commit is contained in:
parent
bc76d934fe
commit
e109d8179f
@ -87,7 +87,7 @@ function mysql_version() {
|
||||
function prepare($query) {
|
||||
global $pdo, $debug, $config;
|
||||
|
||||
$query = preg_replace('/``([0-9a-zA-Z$_\x{0080}-\x{FFFF}]+)``/u', '`' . $config['db']['prefix'] . '$1`', $query);
|
||||
$query = preg_replace('/``('.$config['board_regex'].')``/u', '`' . $config['db']['prefix'] . '$1`', $query);
|
||||
|
||||
sql_open();
|
||||
|
||||
@ -100,7 +100,7 @@ function prepare($query) {
|
||||
function query($query) {
|
||||
global $pdo, $debug, $config;
|
||||
|
||||
$query = preg_replace('/``([0-9a-zA-Z$_\x{0080}-\x{FFFF}]+)``/u', '`' . $config['db']['prefix'] . '$1`', $query);
|
||||
$query = preg_replace('/``('.$config['board_regex'].')``/u', '`' . $config['db']['prefix'] . '$1`', $query);
|
||||
|
||||
sql_open();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user