MDL-55742 mod_lti: Remove support for get_magic_quotes_gpc

Thanks to Bishop Bettini for the original patch.
This commit is contained in:
John Okely
2016-09-01 14:58:29 +08:00
parent 5c33a0db21
commit 3b4491e8aa
-9
View File
@@ -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);