From d4b298680990fa8b90540cf6d1d3b606ad2810a4 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Thu, 20 Aug 2020 11:08:27 +0200 Subject: [PATCH] Fix over-sanitization for texts in MD_STD_IN --- MD_STD_IN.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MD_STD_IN.php b/MD_STD_IN.php index ccc2e3a..e0ffdd5 100644 --- a/MD_STD_IN.php +++ b/MD_STD_IN.php @@ -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);