From 76b493a52a559c255394b4fb309500ceef26a1da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Thu, 9 Aug 2001 00:15:16 +0000 Subject: [PATCH] * Marc fix generates bugs * added a js test to ensure bookmark label is not empty --- sql.php3 | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/sql.php3 b/sql.php3 index 9947c4f12..7b745955c 100755 --- a/sql.php3 +++ b/sql.php3 @@ -7,10 +7,11 @@ */ require('./grab_globals.inc.php3'); require('./lib.inc.php3'); +//loic1: buggy fix +//if (get_magic_quotes_gpc()) { +// $sql_query = stripslashes($sql_query); +//} -if (get_magic_quotes_gpc()) { - $sql_query = stripslashes($sql_query); -} /** * Bookmark add @@ -216,8 +217,16 @@ else { if ($cfgBookmark['db'] && $cfgBookmark['table'] && empty($id_bookmark) && !empty($sql_query)) { echo "\n"; - echo '' . "\n"; - echo '
' . "\n"; + ?> + + + + ' . $strOr . '' . "\n"; }