diff --git a/ChangeLog b/ChangeLog index fae656eb5..05c492391 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,13 @@ phpMyAdmin - Changelog $Id$ $Source$ +2003-03-05 Garvin Hicking + * read_dump.php3, sql.php3, tbl_alter.php3, + tbl_properties_export.php3: Fixed remaining calls to stripslashes() + where not neccessary, because grab_globals already stripslashed + the data. This fixes the problem of the SQL Pretty printer showing + the data wrongly formatted. + 2003-03-05 Michal Cihar * libraries/sqlparser.data.php3: TRANSACTION isn't reserved word (fixes #697961) diff --git a/read_dump.php3 b/read_dump.php3 index 4fac0f103..f906c9dd7 100644 --- a/read_dump.php3 +++ b/read_dump.php3 @@ -297,9 +297,6 @@ if ($sql_file != 'none') { $sql_query = PMA_readFile($sql_file, $sql_file_compression); } - if (get_magic_quotes_runtime() == 1) { - $sql_query = stripslashes($sql_query); - } // Convert the file's charset if necessary if ($cfg['AllowAnywhereRecoding'] && $allow_recoding && isset($charset_of_file) && $charset_of_file != $charset) { diff --git a/sql.php3 b/sql.php3 index 07d8fc857..5833bb01b 100755 --- a/sql.php3 +++ b/sql.php3 @@ -559,7 +559,7 @@ else { if (isset($disp_query) && $cfg['ShowSQL'] == TRUE) { $tmp_sql_query = $GLOBALS['sql_query']; $tmp_sql_limit_to_append = (isset($GLOBALS['sql_limit_to_append'])?$GLOBALS['sql_limit_to_append']:''); - $GLOBALS['sql_query'] = stripslashes($disp_query); + $GLOBALS['sql_query'] = $disp_query; $GLOBALS['sql_limit_to_append'] = ''; PMA_showMessage($disp_message); $GLOBALS['sql_query'] = $tmp_sql_query; diff --git a/tbl_alter.php3 b/tbl_alter.php3 index 3b87000f3..1b1f9ef42 100755 --- a/tbl_alter.php3 +++ b/tbl_alter.php3 @@ -25,12 +25,6 @@ $err_url = 'tbl_properties_structure.php3?' . PMA_generate_common_url($db, $tabl if (isset($submit)) { $field_cnt = count($field_orig); for ($i = 0; $i < $field_cnt; $i++) { - if (get_magic_quotes_gpc()) { - $field_name[$i] = stripslashes($field_name[$i]); - $field_default[$i] = stripslashes($field_default[$i]); - $field_length[$i] = stripslashes($field_length[$i]); - } - if (PMA_MYSQL_INT_VERSION < 32306) { PMA_checkReservedWords($field_name[$i], $err_url); } @@ -130,11 +124,7 @@ else { for ($i = 0; $i < $selected_cnt; $i++) { if (!empty($submit_mult)) { $field = PMA_sqlAddslashes(urldecode($selected[$i]), TRUE); - } - else if (get_magic_quotes_gpc()) { - $field = PMA_sqlAddslashes(stripslashes($selected[$i]), TRUE); - } - else { + } else { $field = PMA_sqlAddslashes($selected[$i], TRUE); } $local_query = 'SHOW FIELDS FROM ' . PMA_backquote($table) . ' FROM ' . PMA_backquote($db) . " LIKE '$field'"; diff --git a/tbl_properties_export.php3 b/tbl_properties_export.php3 index f9680b196..3e6e22260 100755 --- a/tbl_properties_export.php3 +++ b/tbl_properties_export.php3 @@ -18,8 +18,6 @@ require('./tbl_properties_table_info.php3');