From 7b5539900483f5036cebb7ad44a2ebfdb74cbbad Mon Sep 17 00:00:00 2001 From: John Okely Date: Wed, 31 Aug 2016 16:57:38 +0800 Subject: [PATCH] MDL-55742 mod_lti: Remove support for get_magic_quotes_gpc Thanks to Bishop Bettini for the original patch. --- mod/lti/OAuth.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/mod/lti/OAuth.php b/mod/lti/OAuth.php index bdd6b2f9162..0ba4e85b091 100644 --- a/mod/lti/OAuth.php +++ b/mod/lti/OAuth.php @@ -275,15 +275,6 @@ class OAuthRequest { $parameters = OAuthUtil::parse_parameters($_SERVER['QUERY_STRING']); $ourpost = $_POST; - // Deal with magic_quotes - // http://www.php.net/manual/en/security.magicquotes.disabling.php - if (get_magic_quotes_gpc()) { - $outpost = array(); - foreach ($_POST as $k => $v) { - $v = stripslashes($v); - $ourpost[$k] = $v; - } - } // Add POST Parameters if they exist $parameters = array_merge($parameters, $ourpost);