Merge branch 'MDL-55742-master' of https://github.com/xow/moodle
authorDan Poltawski <dan@moodle.com>
Mon, 5 Sep 2016 09:50:47 +0000 (10:50 +0100)
committerDan Poltawski <dan@moodle.com>
Mon, 5 Sep 2016 09:50:47 +0000 (10:50 +0100)
mod/lti/OAuth.php

index bdd6b2f..0ba4e85 100644 (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);