Fix over-sanitization for texts in MD_STD_IN

This commit is contained in:
jrenslin authored and Stefan Rohde-Enslin committed 2020-08-20 11:08:27 +02:00
1 parent 0fece80ed0
commit d4b2986809
1 file changed
+3 -1
+3 -1
View File
@@ -47,7 +47,9 @@ final public static function sanitize_text($input):string {
$output = \filter_var($input,
FILTER_SANITIZE_STRING,
FILTER_FLAG_NO_ENCODE_QUOTES) ?: "";
FILTER_FLAG_NO_ENCODE_QUOTES);
if ($output === false) return "";
return trim($output);