Skip to content

Commit d4bdde8

Browse files
authored
Merge pull request #148 from otacke/replace-deprecated-FILTER_SANITIZE_STRING
Replace deprecated FILTER_SANITIZE_STRING
2 parents 5b794e9 + ac1cb47 commit d4bdde8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

h5peditor-file.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class H5peditorFile {
1111
* Constructor. Process data for file uploaded through the editor.
1212
*/
1313
function __construct($interface) {
14-
$field = filter_input(INPUT_POST, 'field', FILTER_SANITIZE_STRING, FILTER_FLAG_NO_ENCODE_QUOTES);
14+
$field = filter_input(INPUT_POST, 'field', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_FLAG_NO_ENCODE_QUOTES);
1515

1616
// Check for file upload.
1717
if ($field === NULL || empty($_FILES) || !isset($_FILES['file'])) {

0 commit comments

Comments
 (0)