mirror of
https://github.com/moodle/moodle.git
synced 2025-03-25 01:50:55 +01:00
Merge branch 'MDL-75946-401' of https://github.com/davewoloszyn/moodle into MOODLE_401_STABLE
This commit is contained in:
commit
0ce350e78a
@ -15,7 +15,7 @@ class H5peditorFile {
|
||||
* Constructor. Process data for file uploaded through the editor.
|
||||
*/
|
||||
function __construct($interface) {
|
||||
$field = filter_input(INPUT_POST, 'field', FILTER_SANITIZE_STRING, FILTER_FLAG_NO_ENCODE_QUOTES);
|
||||
$field = filter_input(INPUT_POST, 'field', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_FLAG_NO_ENCODE_QUOTES);
|
||||
|
||||
// Check for file upload.
|
||||
if ($field === NULL || empty($_FILES) || !isset($_FILES['file'])) {
|
||||
|
@ -31,3 +31,5 @@ Changed:
|
||||
* Add "use stdClass;" in h5peditor.class.php and h5peditor-file.class.php (check that it's still used before replacing it when
|
||||
upgrading the library).
|
||||
* Edit language/en.js and remove the content for 'filters' (it's a JSON with several fields, such as level or language).
|
||||
* If https://github.com/h5p/h5p-editor-php-library/pull/148 hasn't been merged, a patch needs to be added in
|
||||
h5p/h5plib/v124/joubel/editor/h5peditor-file.class.php, to replace FILTER_SANITIZE_STRING to FILTER_SANITIZE_FULL_SPECIAL_CHARS.
|
||||
|
@ -335,8 +335,8 @@ class Horde_Variables implements ArrayAccess, Countable, IteratorAggregate
|
||||
}
|
||||
|
||||
return is_array($val)
|
||||
? filter_var_array($val, FILTER_SANITIZE_STRING)
|
||||
: filter_var($val, FILTER_SANITIZE_STRING);
|
||||
? filter_var_array($val, FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_FLAG_NO_ENCODE_QUOTES)
|
||||
: filter_var($val, FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_FLAG_NO_ENCODE_QUOTES);
|
||||
}
|
||||
|
||||
/* Protected methods. */
|
||||
|
@ -13,6 +13,10 @@ Description of import of Horde libraries
|
||||
passing in your path to Horde (the directory you've cloned the repository):
|
||||
/tmp/copyhorde.sh ~/git/base/directory/from/step/2
|
||||
|
||||
|
||||
Notes:
|
||||
* 2023-01-20 Applied patch https://github.com/horde/Util/pull/10
|
||||
|
||||
====
|
||||
#!/bin/sh
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user