Fix over-sanitization for texts in MD_STD_IN

This commit is contained in:
Joshua Ramon Enslin 2020-08-20 11:08:27 +02:00 committed by Stefan Rohde-Enslin
parent 0fece80ed0
commit d4b2986809

View File

@ -47,7 +47,9 @@ class MD_STD_IN {
$output = \filter_var($input, $output = \filter_var($input,
FILTER_SANITIZE_STRING, FILTER_SANITIZE_STRING,
FILTER_FLAG_NO_ENCODE_QUOTES) ?: ""; FILTER_FLAG_NO_ENCODE_QUOTES);
if ($output === false) return "";
return trim($output); return trim($output);