From 9101957f6c13c4a9d80ab98820c83b0fd9dee623 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Sun, 20 May 2001 18:15:16 +0000 Subject: [PATCH] Optimized a bit the stripslash work in case of inline queries --- db_readdump.php3 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/db_readdump.php3 b/db_readdump.php3 index 0c8bd149f..a7db8dc15 100755 --- a/db_readdump.php3 +++ b/db_readdump.php3 @@ -42,9 +42,8 @@ if($sql_file != "none") { if (get_magic_quotes_runtime() == 1) $sql_query = stripslashes($sql_query); } } -else { - if(get_magic_quotes_gpc() != 0 && get_magic_quotes_runtime() != 0) $sql_query = stripslashes($sql_query); - if(get_magic_quotes_gpc() == 1 && get_magic_quotes_runtime() == 0) $sql_query = stripslashes($sql_query); +else if (get_magic_quotes_gpc() == 1) { + $sql_query = stripslashes($sql_query); } $sql_query = trim($sql_query);