Fix Bug #700489 (quotes for non-JS browsers)

This commit is contained in:
Garvin Hicking
2003-03-10 18:52:27 +00:00
parent 0ada14baeb
commit 42aa76e0e0
2 changed files with 7 additions and 2 deletions

View File

@@ -11,6 +11,12 @@ $Source$
translation by mail order... :o) translation by mail order... :o)
2003-03-10 Garvin Hicking <me@supergarv.de> 2003-03-10 Garvin Hicking <me@supergarv.de>
* sql.php3: Fixed another occurence of addslashes() where it no longer
belongs.
* tbl_addfield.php3, tbl_alter.php3, tbl_create.php3,
tbl_properties.inc.php3: Goodie for you all - when creating/altering/
adding table fields you can now change the wrong form input, instead
of losing all your data. Have fun. :-)
* tbl_dump.php3, tbl_properties_export.php3, css/phpmyadmin.css.php3, * tbl_dump.php3, tbl_properties_export.php3, css/phpmyadmin.css.php3,
lang/*: lang/*:
Added new table export format by Michal Cihar. db_details_export.php3 Added new table export format by Michal Cihar. db_details_export.php3
@@ -31,7 +37,6 @@ $Source$
directive and should also be able to be cached by the browser. directive and should also be able to be cached by the browser.
See patch #699454. See patch #699454.
Also some unneccessary code was removed from querywindow/wrapper. Also some unneccessary code was removed from querywindow/wrapper.
* tbl_change.php3: Patch #697541 to prevent non-associative MySQL * tbl_change.php3: Patch #697541 to prevent non-associative MySQL
fieldnames to be mapped to false keys for display. fieldnames to be mapped to false keys for display.

View File

@@ -176,7 +176,7 @@ if ($do_confirm) {
?> ?>
<form action="sql.php3" method="post"> <form action="sql.php3" method="post">
<?php echo PMA_generate_common_hidden_inputs($db, (isset($table)?$table:'')); ?> <?php echo PMA_generate_common_hidden_inputs($db, (isset($table)?$table:'')); ?>
<input type="hidden" name="sql_query" value="<?php echo urlencode(addslashes($sql_query)); ?>" /> <input type="hidden" name="sql_query" value="<?php echo urlencode($sql_query); ?>" />
<input type="hidden" name="zero_rows" value="<?php echo isset($zero_rows) ? $zero_rows : ''; ?>" /> <input type="hidden" name="zero_rows" value="<?php echo isset($zero_rows) ? $zero_rows : ''; ?>" />
<input type="hidden" name="goto" value="<?php echo $goto; ?>" /> <input type="hidden" name="goto" value="<?php echo $goto; ?>" />
<input type="hidden" name="back" value="<?php echo isset($back) ? $back : ''; ?>" /> <input type="hidden" name="back" value="<?php echo isset($back) ? $back : ''; ?>" />