+// Remove slashes if PHP added them
+if (get_magic_quotes_gpc()) {
+ global $REQUEST_METHOD;
+
+ if ($REQUEST_METHOD == "POST") {
+ global $HTTP_POST_VARS;
+ RemoveSlashes($HTTP_POST_VARS);
+ } else if ($REQUEST_METHOD == "GET") {
+ global $HTTP_GET_VARS;
+ RemoveSlashes($HTTP_GET_VARS);
+ }
+}
+
+