Skip to content

Commit

Permalink
bug 645173
Browse files Browse the repository at this point in the history
  • Loading branch information
lem9 committed Nov 29, 2002
1 parent 0f38c9b commit 2277454
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Expand Up @@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$
$Source$

2002-11-29 Marc Delisle <lem9@users.sourceforge.net>
* tbl_change.php3, tbl_select.php3, tbl_properties_operations.php3:
bug 645173 wrong back link for inserts

2002-11-28 Marc Delisle <lem9@users.sourceforge.net>
* main.php3: display PHP 4.2.3 warning only if mbstring is loaded

Expand Down
6 changes: 4 additions & 2 deletions tbl_change.php3
Expand Up @@ -62,15 +62,17 @@ if (get_magic_quotes_gpc()) {
if (!isset($goto)) {
$goto = 'db_details.php3';
}
if ($goto != 'db_details.php3' && $goto != 'tbl_properties.php3') {
//if ($goto != 'db_details.php3' && $goto != 'tbl_properties.php3') {
if (!ereg('^(db_details|tbl_properties|tbl_select)', $goto)) {
$err_url = $goto;
} else {
$err_url = $goto
. '?lang=' . $lang
. '&amp;convcharset=' . $convcharset
. '&amp;server=' . $server
. '&amp;db=' . urlencode($db)
. (($goto == 'tbl_properties.php3') ? '&amp;table=' . urlencode($table) : '');
//. (($goto == 'tbl_properties.php3') ? '&amp;table=' . urlencode($table) : '');
. ((ereg('^(tbl_properties|tbl_select)', $goto)) ? '&amp;table=' . urlencode($table) : '');
}


Expand Down
2 changes: 1 addition & 1 deletion tbl_properties_operations.php3
Expand Up @@ -7,7 +7,7 @@
* Runs common work
*/
require('./tbl_properties_common.php3');
$err_url = 'tbl_properties_operations.php3' . $err_url;
//$err_url = 'tbl_properties_operations.php3' . $err_url;
$url_query .= '&amp;goto=tbl_properties_operations.php3&amp;back=tbl_properties_operations.php3';


Expand Down
5 changes: 4 additions & 1 deletion tbl_select.php3
Expand Up @@ -25,10 +25,13 @@ $textfunctions = array('LIKE', '=', '!=');
if (!isset($param) || $param[0] == '') {
// Gets some core libraries
include('./tbl_properties_common.php3');
$err_url = 'tbl_select.php3' . $err_url;
//$err_url = 'tbl_select.php3' . $err_url;
$url_query .= '&amp;goto=tbl_select.php3&amp;back=tbl_select.php3';
include('./tbl_properties_table_info.php3');

if (!isset($goto)) {
$goto = $cfg['DefaultTabTable'];
}
// Defines the url to return to in case of error in the next sql statement
$err_url = $goto
. '?lang=' . $lang
Expand Down

0 comments on commit 2277454

Please sign in to comment.