From c36e53d3c85259b1b80c414b6548ebbcb84ee907 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 10 Oct 2007 19:16:41 +0000 Subject: Additional fix for bug 313129: Bugzilla::Milestone->_check_name() incorrectly trims the milestone name --- Bugzilla/Milestone.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Bugzilla') diff --git a/Bugzilla/Milestone.pm b/Bugzilla/Milestone.pm index 7a0a81a42..dda04c4f8 100644 --- a/Bugzilla/Milestone.pm +++ b/Bugzilla/Milestone.pm @@ -167,7 +167,8 @@ sub remove_from_db { sub _check_value { my ($invocant, $name, $product) = @_; - trim($name) || ThrowUserError('milestone_blank_name'); + $name = trim($name); + $name || ThrowUserError('milestone_blank_name'); if (length($name) > MAX_MILESTONE_SIZE) { ThrowUserError('milestone_name_too_long', {name => $name}); } -- cgit v1.2.3-24-g4f1b