functions/global.php already strips slashes. Having this here twice would
authorjangliss <jangliss@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 19 Apr 2003 07:55:07 +0000 (07:55 +0000)
committerjangliss <jangliss@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 19 Apr 2003 07:55:07 +0000 (07:55 +0000)
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

index a18df0e..89529f1 100644 (file)
@@ -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')){