mirror of
https://github.com/moodle/moodle.git
synced 2025-03-18 06:31:22 +01:00
Merge branch 'MDL-73502' of https://github.com/stronk7/moodle
This commit is contained in:
commit
1077f39bcc
@ -222,15 +222,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);
|
||||
|
||||
|
@ -2,3 +2,5 @@ This library was originally published by the IMS at https://code.google.com/p/im
|
||||
current code was taken from https://github.com/jfederico/ims-dev/tree/master/basiclti/php-simple/ims-blti - with
|
||||
several changes to the code (including bug fixes). As the library is no longer supported upgrades are not possible.
|
||||
In future releases we should look into using a supported library.
|
||||
|
||||
2021-01-05 - Removed get_magic_quotes_gpc() use, was returning false since ages ago.
|
||||
|
@ -32,7 +32,7 @@ if (!empty($_POST))
|
||||
if ( ( !is_string($value) && !is_numeric($value) ) || !is_string($key) )
|
||||
continue;
|
||||
|
||||
if ( get_magic_quotes_gpc() )
|
||||
if ( function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc() )
|
||||
$value = htmlspecialchars( stripslashes((string)$value) );
|
||||
else
|
||||
$value = htmlspecialchars( (string)$value );
|
||||
|
@ -32,5 +32,6 @@ Added:
|
||||
|
||||
Changed:
|
||||
* Updated H5peditor::getLibraryData parameters to fix PHP8.0 warnings. See MDL-70903 for details.
|
||||
* Make get_magic_quotes_gpc() use conditional, it has been removed in php80. See MDL-73502 for details.
|
||||
|
||||
Downloaded version: moodle-1.20.2 release
|
||||
|
Loading…
x
Reference in New Issue
Block a user