diff options
Diffstat (limited to 'Bugzilla/Util.pm')
-rw-r--r-- | Bugzilla/Util.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Util.pm b/Bugzilla/Util.pm index 31a1052e4..28f5e71bc 100644 --- a/Bugzilla/Util.pm +++ b/Bugzilla/Util.pm @@ -392,8 +392,8 @@ sub is_7bit_clean { sub clean_text { my ($dtext) = shift; - $dtext =~ s/[\x00-\x1F\x7F]/ /g; # change control characters to spaces - return $dtext; + $dtext =~ s/[\x00-\x1F\x7F]+/ /g; # change control characters into a space + return trim($dtext); } 1; |