Fix over-sanitization for texts in MD_STD_IN
This commit is contained in:
parent
0fece80ed0
commit
d4b2986809
@ -47,7 +47,9 @@ class MD_STD_IN {
|
||||
|
||||
$output = \filter_var($input,
|
||||
FILTER_SANITIZE_STRING,
|
||||
FILTER_FLAG_NO_ENCODE_QUOTES) ?: "";
|
||||
FILTER_FLAG_NO_ENCODE_QUOTES);
|
||||
|
||||
if ($output === false) return "";
|
||||
|
||||
return trim($output);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user