From 8508ede5763d9d98d8c4fc755847752d192c2126 Mon Sep 17 00:00:00 2001 From: "mozilla%colinogilvie.co.uk" <> Date: Mon, 9 Jan 2006 03:56:03 +0000 Subject: Bug 101380: Newlines, nulls, leading/trailing spaces are getting into summaries Patch by Paul and Colin Ogilvie ; r/a=justdave --- Bugzilla/Util.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Bugzilla/Util.pm') 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; -- cgit v1.2.3-24-g4f1b