Fixed an other slashes bug

This commit is contained in:
Loïc Chapeaux
2001-08-09 14:49:27 +00:00
parent 2f963fbb81
commit 50712d2a3c
3 changed files with 14 additions and 9 deletions

View File

@@ -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 -->