From e58c390ce15c72f7b9e5b4020ca36fe0a9e4a9b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Sun, 23 Dec 2001 13:24:04 +0000 Subject: [PATCH] fixed bug fixed bug #472728 - select records and many fields / IE 5.5 or IE 6 --- ChangeLog | 8 ++++++-- tbl_select.php3 | 15 ++++++--------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index ca4a3b155..583deb692 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,10 +5,14 @@ phpMyAdmin - Changelog $Id$ $Source$ +2001-12-23 Loïc Chapeaux + * tbl_select.php3, lines 202-206: fixed bug #472728 - Many fields / IE 5.5 + or IE 6. + 2001-12-22 Marc Delisle * start new MySQL short documentation structure: - - config.inc.php3 $cfgManualBaseShort - - libraries/common.lib.php3 PMA_showDocuShort() + - config.inc.php3 $cfgManualBaseShort + - libraries/common.lib.php3 PMA_showDocuShort() 2001-12-21 Marc Delisle * test and merge patch from Loïc for bug 495112: diff --git a/tbl_select.php3 b/tbl_select.php3 index 66524ce35..c2966236a 100755 --- a/tbl_select.php3 +++ b/tbl_select.php3 @@ -199,15 +199,12 @@ else { $sql_query .= ' ORDER BY ' . PMA_backquote(urldecode($orderField)) . ' ' . $order; } // end if - $url_query = 'lang=' . $lang - . '&server=' . $server - . '&db=' . urlencode($db) - . '&table=' . urlencode($table) - . '&sql_query=' . urlencode($sql_query) - . '&pos=0' - . '&session_max_rows=' . $session_max_rows - . '&goto='. $goto; - header('Location: ' . $cfgPmaAbsoluteUri . 'sql.php3?' . $url_query); + // The query will be stripslashed in sql.php3 if "magic_quotes_gpc" is on + if (get_magic_quotes_gpc()) { + $sql_query = addslashes($sql_query); + } + include('./sql.php3'); + } ?>