[Rt-commit] r5744 - rt/branches/3.6-RELEASE/lib/RT/Interface
ruz at bestpractical.com
ruz at bestpractical.com
Wed Aug 9 15:34:31 EDT 2006
Author: ruz
Date: Wed Aug 9 15:34:29 2006
New Revision: 5744
Modified:
rt/branches/3.6-RELEASE/lib/RT/Interface/Email.pm
Log:
* report error if action is empty in mailgate
Modified: rt/branches/3.6-RELEASE/lib/RT/Interface/Email.pm
==============================================================================
--- rt/branches/3.6-RELEASE/lib/RT/Interface/Email.pm (original)
+++ rt/branches/3.6-RELEASE/lib/RT/Interface/Email.pm Wed Aug 9 15:34:29 2006
@@ -953,7 +953,8 @@
sub IsCorrectAction {
my $action = shift;
- my @actions = split /-/, $action;
+ my @actions = grep $_, split /-/, $action;
+ return ( 0, '(no value)' ) unless @actions;
foreach (@actions) {
return ( 0, $_ ) unless /^(?:comment|correspond|take|resolve)$/;
}
More information about the Rt-commit
mailing list