bug 665885

This commit is contained in:
Marc Delisle
2003-01-11 01:31:51 +00:00
parent 05d43db54f
commit c72da24175
2 changed files with 4 additions and 3 deletions

View File

@@ -58,13 +58,11 @@ if (get_magic_quotes_gpc()) {
if (!isset($goto)) {
$goto = 'db_details.php3';
}
//if ($goto != 'db_details.php3' && $goto != 'tbl_properties.php3') {
if (!ereg('^(db_details|tbl_properties|tbl_select)', $goto)) {
$err_url = $goto;
$err_url = $goto . "?" . PMA_generate_common_url($db) . "&sql_query=" . urlencode($sql_query);
} else {
$err_url = $goto . '?'
. PMA_generate_common_url($db)
//. (($goto == 'tbl_properties.php3') ? '&table=' . urlencode($table) : '');
. ((ereg('^(tbl_properties|tbl_select)', $goto)) ? '&table=' . urlencode($table) : '');
}