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
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')){