Add removal of duplicate spaces in input strings in MD_STD_IN

This commit is contained in:
Joshua Ramon Enslin 2020-09-09 00:29:13 +02:00 committed by Stefan Rohde-Enslin
parent 49ab75afe8
commit 0bfd6c3765

View File

@ -78,6 +78,9 @@ final class MD_STD_IN {
FILTER_FLAG_NO_ENCODE_QUOTES); FILTER_FLAG_NO_ENCODE_QUOTES);
if ($output === false) return ""; if ($output === false) return "";
while (strpos($output, " ") !== false) {
$output = str_replace(" ", " ", $output);
}
return trim($output); return trim($output);