Fixed regexp quoting issue in Synchronize code, see PMASA-2011-7

This commit is contained in:
Herman van Rink
2011-06-30 09:59:43 +02:00
parent 0fbedaf5fd
commit 69fb0f8e7d
2 changed files with 2 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ phpMyAdmin - ChangeLog
3.4.3.1 (not yet released)
- [security] Fixed possible session manipulation in swekey authentication, see PMASA-2011-5
- [security] Fixed possible code injection incase session variables are compromised, see PMASA-2011-6
- [security] Fixed regexp quoting issue in Synchronize code, see PMASA-2011-7
3.4.3.0 (2011-06-27)
- bug #3311170 [sync] Missing helper icons in Synchronize

View File

@@ -624,7 +624,7 @@ function PMA_createTargetTables($src_db, $trg_db, $src_link, $trg_link, &$uncomm
$Create_Query = PMA_DBI_fetch_value("SHOW CREATE TABLE " . PMA_backquote($src_db) . '.' . PMA_backquote($uncommon_tables[$table_index]), 0, 1, $src_link);
// Replace the src table name with a `dbname`.`tablename`
$Create_Table_Query = preg_replace('/' . PMA_backquote($uncommon_tables[$table_index]) . '/',
$Create_Table_Query = preg_replace('/' . preg_quote(PMA_backquote($uncommon_tables[$table_index]), '/') . '/',
PMA_backquote($trg_db) . '.' .PMA_backquote($uncommon_tables[$table_index]),
$Create_Query,
$limit = 1