Fixed bug in AddLog
authorAndrew DeFaria <Andrew@DeFaria.com>
Fri, 13 Aug 2021 12:31:20 +0000 (05:31 -0700)
committerAndrew DeFaria <Andrew@DeFaria.com>
Fri, 13 Aug 2021 12:31:20 +0000 (05:31 -0700)
maps/lib/MAPS.pm

index 5802aa5..73c0d4d 100644 (file)
@@ -311,8 +311,7 @@ sub AddLog(%) {
   my (%params) = @_;
 
   # Some email senders are coming in mixed case. We don't want that
-  $params{pattern} = $params{pattern} ? lc $params{pattern} : '';
-  $params{domain}  = $params{domain}  ? lc $params{domain}  : '';
+  $params{sender} = $params{sender} ? lc $params{sender} : '';
 
   $params{timestamp} = UnixDatetime2SQLDatetime(scalar(localtime));