summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Milestone.pm
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-10-10 21:16:41 +0200
committerlpsolit%gmail.com <>2007-10-10 21:16:41 +0200
commitc36e53d3c85259b1b80c414b6548ebbcb84ee907 (patch)
treeb63a89028f40b33315192536472717af7187bd2c /Bugzilla/Milestone.pm
parent997030e295661b4e18f29cef9832af98cc2a4038 (diff)
downloadbugzilla-c36e53d3c85259b1b80c414b6548ebbcb84ee907.tar.gz
bugzilla-c36e53d3c85259b1b80c414b6548ebbcb84ee907.tar.xz
Additional fix for bug 313129: Bugzilla::Milestone->_check_name() incorrectly trims the milestone name
Diffstat (limited to 'Bugzilla/Milestone.pm')
-rw-r--r--Bugzilla/Milestone.pm3
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});
}