Skip to content

Commit ac1cb47

Browse files
committed
Replace deprecated FILTER_SANITIZE_STRING
1 parent 597a636 commit ac1cb47

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)