Optimized a bit the stripslash work in case of inline queries

This commit is contained in:
Loïc Chapeaux
2001-05-20 18:15:16 +00:00
parent 3001b6dded
commit 9101957f6c

View File

@@ -42,9 +42,8 @@ if($sql_file != "none") {
if (get_magic_quotes_runtime() == 1) $sql_query = stripslashes($sql_query); if (get_magic_quotes_runtime() == 1) $sql_query = stripslashes($sql_query);
} }
} }
else { else if (get_magic_quotes_gpc() == 1) {
if(get_magic_quotes_gpc() != 0 && get_magic_quotes_runtime() != 0) $sql_query = stripslashes($sql_query); $sql_query = stripslashes($sql_query);
if(get_magic_quotes_gpc() == 1 && get_magic_quotes_runtime() == 0) $sql_query = stripslashes($sql_query);
} }
$sql_query = trim($sql_query); $sql_query = trim($sql_query);