From: jangliss Date: Sat, 19 Apr 2003 07:55:07 +0000 (+0000) Subject: functions/global.php already strips slashes. Having this here twice would X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=db479313da9b4405f8744fb9233e08fe57a1a033;hp=20152d80f0ff10e27fec87ac3b805004c815eee9;ds=sidebyside 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 --- 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')){