]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Additional fix for bug 313129: Bugzilla::Milestone->_check_name() incorrectly trims...
authorlpsolit%gmail.com <>
Wed, 10 Oct 2007 19:16:41 +0000 (19:16 +0000)
committerlpsolit%gmail.com <>
Wed, 10 Oct 2007 19:16:41 +0000 (19:16 +0000)
Bugzilla/Milestone.pm

index 7a0a81a422461173db887640f718177f801d45a7..dda04c4f8e7489ba8625d2fb3b56244b66edb902 100644 (file)
@@ -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});
     }