diff options
author | lpsolit%gmail.com <> | 2007-10-10 21:16:41 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-10-10 21:16:41 +0200 |
commit | c36e53d3c85259b1b80c414b6548ebbcb84ee907 (patch) | |
tree | b63a89028f40b33315192536472717af7187bd2c | |
parent | 997030e295661b4e18f29cef9832af98cc2a4038 (diff) | |
download | bugzilla-c36e53d3c85259b1b80c414b6548ebbcb84ee907.tar.gz bugzilla-c36e53d3c85259b1b80c414b6548ebbcb84ee907.tar.xz |
Additional fix for bug 313129: Bugzilla::Milestone->_check_name() incorrectly trims the milestone name
-rw-r--r-- | Bugzilla/Milestone.pm | 3 |
1 files changed, 2 insertions, 1 deletions
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}); } |