Fix over-sanitization for texts in MD_STD_IN
This commit is contained in:
1 parent
0fece80ed0
commit
d4b2986809
1 file changed
+3
-1
+3
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user