Fixed an other slashes bug
This commit is contained in:
@@ -18,6 +18,7 @@ $Source$
|
||||
* tbl_select.php3, lines 144-164: fixed bug #449430 (Quote/Select bug on
|
||||
2.2.0rc4) and optimized a bit this part of the script.
|
||||
* lib.inc.php3, line 908: beautify the generated html code.
|
||||
* db_readdump.php3; db_details.php3: fixed an other slashes bug.
|
||||
|
||||
2001-08-08 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* tbl_change.php3, enum values were not displayed
|
||||
|
@@ -288,11 +288,20 @@ $url_query = 'lang=' . $lang
|
||||
. '&server=' . urlencode($server)
|
||||
. '&db=' . urlencode($db)
|
||||
. '&goto=db_details.php3';
|
||||
if (isset($show_query)) {
|
||||
if (get_magic_quotes_gpc()) {
|
||||
$sql_query = stripslashes($sql_query);
|
||||
if (isset($show_query) && $show_query == 'y') {
|
||||
// This script has been called by db_readdump.php3
|
||||
if (isset($sql_query_cpy)) {
|
||||
$query_to_display = $sql_query_cpy;
|
||||
}
|
||||
$query_to_display = (($show_query == 'y') ? $sql_query : '');
|
||||
// Other cases
|
||||
else if (get_magic_quotes_gpc()) {
|
||||
$query_to_display = stripslashes($sql_query);
|
||||
}
|
||||
else {
|
||||
$query_to_display = $sql_query;
|
||||
}
|
||||
} else {
|
||||
$query_to_display = '';
|
||||
}
|
||||
?>
|
||||
<!-- DATABASE WORK -->
|
||||
|
@@ -115,11 +115,6 @@ if ($sql_query != '') {
|
||||
/**
|
||||
* Go back to db_details.php3
|
||||
*/
|
||||
// Copy the original query back for display purposes (we add slashes because
|
||||
// stripslashes is used in db_details.php3, line 294)
|
||||
$sql_query = (get_magic_quotes_gpc())
|
||||
? addslashes($sql_query_cpy)
|
||||
: $sql_query_cpy;
|
||||
include('./header.inc.php3');
|
||||
if (isset($my_die)) {
|
||||
mysql_die('', $my_die);
|
||||
|
Reference in New Issue
Block a user