From db479313da9b4405f8744fb9233e08fe57a1a033 Mon Sep 17 00:00:00 2001 From: jangliss Date: Sat, 19 Apr 2003 07:55:07 +0000 Subject: [PATCH] functions/global.php already strips slashes. Having this here twice would result in ALL slashes being removed from post/get vars if magic_quotes_gpc was enabled... and as such, usernames/passwords with a \ in would die. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4781 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/redirect.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/redirect.php b/src/redirect.php index a18df0e0..89529f11 100644 --- a/src/redirect.php +++ b/src/redirect.php @@ -26,16 +26,6 @@ require_once(SM_PATH . 'functions/plugin.php'); require_once(SM_PATH . 'functions/constants.php'); require_once(SM_PATH . 'functions/page_header.php'); -// Remove slashes if PHP added them -sqgetGlobalVar('REQUEST_METHOD', $REQUEST_METHOD, SQ_SERVER); -if (get_magic_quotes_gpc()) { - if ($REQUEST_METHOD == 'POST') { - RemoveSlashes($_POST); - } else if ($REQUEST_METHOD == 'GET') { - RemoveSlashes($_GET); - } -} - /* Before starting the session, the base URI must be known. Assuming */ /* that this file is in the src/ subdirectory (or something). */ if (!function_exists('sqm_baseuri')){ -- 2.25.1