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

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$
$Source$
2003-01-10 Marc Delisle <lem9@users.sourceforge.net>
* tbl_change.php3: bug 665885, wrong back link after sql error
2003-01-10 Michal Cihar <nijel@users.sourceforge.net>
* lang/czech*: Updated.

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) . "&amp;sql_query=" . urlencode($sql_query);
} else {
$err_url = $goto . '?'
. PMA_generate_common_url($db)
//. (($goto == 'tbl_properties.php3') ? '&amp;table=' . urlencode($table) : '');
. ((ereg('^(tbl_properties|tbl_select)', $goto)) ? '&amp;table=' . urlencode($table) : '');
}