Thanks to Bishop Bettini for the original patch.
$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);