diff --git a/db_details_common.php3 b/db_details_common.php3 index 6c32d077c..9e62e8f1f 100644 --- a/db_details_common.php3 +++ b/db_details_common.php3 @@ -33,7 +33,7 @@ if (!isset($is_db) || !$is_db) { $is_db = @PMA_mysql_select_db($db); } if (empty($db) || !$is_db) { - header('Location: ' . $cfg['PmaAbsoluteUri'] . 'main.php3?' . PMA_generate_common_url() . (isset($message) ? '&message=' . urlencode($message) : '') . '&reload=1'); + header('Location: ' . $cfg['PmaAbsoluteUri'] . 'main.php3?' . PMA_generate_common_url('', '', '&') . (isset($message) ? '&message=' . urlencode($message) : '') . '&reload=1'); exit(); } } // end if (ensures db exists) @@ -47,7 +47,7 @@ if (!isset($message)) { ?> back to the default db_details sub-page @@ -49,7 +49,7 @@ if (!defined('PMA_IDX_INCLUDED')) { } if (empty($table) || !($is_table && @mysql_numrows($is_table))) { - header('Location: ' . $cfg['PmaAbsoluteUri'] . $cfg['DefaultTabDatabase'] . '?' . PMA_generate_common_url($db) . (isset($message) ? '&message=' . urlencode($message) : '') . '&reload=1'); + header('Location: ' . $cfg['PmaAbsoluteUri'] . $cfg['DefaultTabDatabase'] . '?' . PMA_generate_common_url($db, '', '&') . (isset($message) ? '&message=' . urlencode($message) : '') . '&reload=1'); exit(); } else if (isset($is_table)) { mysql_free_result($is_table); diff --git a/tbl_replace.php3 b/tbl_replace.php3 index f850af2ee..71e4d84bb 100755 --- a/tbl_replace.php3 +++ b/tbl_replace.php3 @@ -23,7 +23,7 @@ if (!isset($dontlimitchars)) { $is_gotofile = FALSE; if (isset($after_insert) && $after_insert == 'new_insert') { $goto = 'tbl_change.php3?' - . PMA_generate_common_url($db, $table) + . PMA_generate_common_url($db, $table, '&') . '&goto=' . urlencode($goto) . '&pos=' . $pos . '&session_max_rows=' . $session_max_rows @@ -33,7 +33,7 @@ if (isset($after_insert) && $after_insert == 'new_insert') { . (empty($sql_query) ? '' : '&sql_query=' . urlencode($sql_query)); } else if ($goto == 'sql.php3') { $goto = 'sql.php3?' - . PMA_generate_common_url($db, $table) + . PMA_generate_common_url($db, $table, '&') . '&pos=' . $pos . '&session_max_rows=' . $session_max_rows . '&disp_direction=' . $disp_direction