From 0bfd6c3765fccf9be52b20fa95d9fd70b52aa729 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Wed, 9 Sep 2020 00:29:13 +0200 Subject: [PATCH] Add removal of duplicate spaces in input strings in MD_STD_IN --- MD_STD_IN.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MD_STD_IN.php b/MD_STD_IN.php index ce56f6e..6dd6b20 100644 --- a/MD_STD_IN.php +++ b/MD_STD_IN.php @@ -78,6 +78,9 @@ final class MD_STD_IN { FILTER_FLAG_NO_ENCODE_QUOTES); if ($output === false) return ""; + while (strpos($output, " ") !== false) { + $output = str_replace(" ", " ", $output); + } return trim($output);