summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-04-17 09:52:54 +0000
committerfukachan <fukachan>2001-04-17 09:52:54 +0000
commit92fd46e300ba22d62863bc2870a4b11bf32a3e28 (patch)
treec9617c54338cfe72581b61633ee9152086a882db
parent00ae10a0f3fa973e99a668667a90f91207a683de (diff)
downloadfml8-92fd46e300ba22d62863bc2870a4b11bf32a3e28.tar.gz
fml8-92fd46e300ba22d62863bc2870a4b11bf32a3e28.tar.bz2
fml8-92fd46e300ba22d62863bc2870a4b11bf32a3e28.zip
nuke trailing \n
-rw-r--r--fml/lib/FML/Ticket/Model/minimal_states.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/fml/lib/FML/Ticket/Model/minimal_states.pm b/fml/lib/FML/Ticket/Model/minimal_states.pm
index 8bdf7efb..1f0142bf 100644
--- a/fml/lib/FML/Ticket/Model/minimal_states.pm
+++ b/fml/lib/FML/Ticket/Model/minimal_states.pm
@@ -4,7 +4,7 @@
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: minimal_states.pm,v 1.16 2001/04/15 05:04:01 fukachan Exp $
+# $FML: minimal_states.pm,v 1.17 2001/04/15 05:58:06 fukachan Exp $
#
package FML::Ticket::Model::minimal_states;
@@ -390,6 +390,10 @@ sub _update_db
my $sender = $rh->{ _sender }->{ $aid[0] };
my $when = $rh->{ _date }->{ $aid[0] };
+ # clean up
+ $sender =~ s/[\s\n]*$//;
+ $when =~ s/[\s\n]*$//;
+
use FML::Date;
$when = FML::Date->new($when)->mail_header_style();