diff options
author | mozilla%colinogilvie.co.uk <> | 2006-01-09 04:56:03 +0100 |
---|---|---|
committer | mozilla%colinogilvie.co.uk <> | 2006-01-09 04:56:03 +0100 |
commit | 8508ede5763d9d98d8c4fc755847752d192c2126 (patch) | |
tree | 52943273ee4f76b7121d9568ce528e585d3c44a2 /Bugzilla/Util.pm | |
parent | 94232797b7ea157c75ee92a9830993fbff1caad1 (diff) | |
download | bugzilla-8508ede5763d9d98d8c4fc755847752d192c2126.tar.gz bugzilla-8508ede5763d9d98d8c4fc755847752d192c2126.tar.xz |
Bug 101380: Newlines, nulls, leading/trailing spaces are getting into summaries
Patch by Paul <pdemarco@zoominternet.net> and Colin Ogilvie <colin.ogilvie@gmail.com>; r/a=justdave
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; |