From: lpsolit%gmail.com <> Date: Wed, 10 Oct 2007 19:16:41 +0000 (+0000) Subject: Additional fix for bug 313129: Bugzilla::Milestone->_check_name() incorrectly trims... X-Git-Tag: bugzilla-3.1.3~502 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c36e53d3c85259b1b80c414b6548ebbcb84ee907;p=thirdparty%2Fbugzilla.git Additional fix for bug 313129: Bugzilla::Milestone->_check_name() incorrectly trims the milestone name --- diff --git a/Bugzilla/Milestone.pm b/Bugzilla/Milestone.pm index 7a0a81a422..dda04c4f8e 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}); }