[otrs-cvs] otrs/Kernel/System/PostMaster/Filter MatchDBSource.pm, 1.24, 1.25

"CVS commits notifications of OTRS.org" <[email protected]>
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/otrs/Kernel/System/PostMaster/Filter
In directory lancelot:/tmp/cvs-serv8763/Kernel/System/PostMaster/Filter

Modified Files:
	MatchDBSource.pm 
Log Message:
Fixed bug #9140 - Postmaster Filter for empty subjects does not work.

Author: ub

Index: MatchDBSource.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/PostMaster/Filter/MatchDBSource.pm,v
retrieving revision 1.24
retrieving revision 1.25
diff -2 -u -d -r1.24 -r1.25
--- MatchDBSource.pm	20 Nov 2012 15:52:06 -0000	1.24
+++ MatchDBSource.pm	7 Feb 2013 13:58:05 -0000	1.25
@@ -1,5 +1,5 @@
 # --
 # Kernel/System/PostMaster/Filter/MatchDBSource.pm - sub part of PostMaster.pm
-# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
 # --
 # $Id$
@@ -76,5 +76,5 @@
 
             # match only email addresses
-            if ( $Param{GetParam}->{$_} && $Match{$_} =~ /^EMAILADDRESS:(.*)$/ ) {
+            if ( defined $Param{GetParam}->{$_} && $Match{$_} =~ /^EMAILADDRESS:(.*)$/ ) {
                 my $SearchEmail    = $1;
                 my @EmailAddresses = $Self->{ParserObject}->SplitAddressLine(
@@ -106,5 +106,5 @@
 
             # match string
-            elsif ( $Param{GetParam}->{$_} && $Param{GetParam}->{$_} =~ /$Match{$_}/i ) {
+            elsif ( defined $Param{GetParam}->{$_} && $Param{GetParam}->{$_} =~ /$Match{$_}/i ) {
 
                 # don't lose older match values if more than one header is
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.