]> git.proxmox.com Git - pmg-api.git/commitdiff
ldap cache: removed superfluous uppercase SMTP from regex
authorMarkus Frank <m.frank@proxmox.com>
Wed, 30 Mar 2022 12:32:14 +0000 (14:32 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 4 Apr 2022 13:30:10 +0000 (15:30 +0200)
removed "SMTP" because of lowercase function is called before.

Signed-off-by: Markus Frank <m.frank@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PMG/LDAPCache.pm

index df614547e4d2b08360de0a692c0364ab39f80ac5..19e22a410007e7cabe6a0a7a39cd153a9d6e05f8 100755 (executable)
@@ -160,11 +160,11 @@ sub queryusers {
            foreach my $mail (@{$user->{attributes}->{$attr}}) {
                $mail = lc($mail);
                # Test if the Line starts with one of the following lines:
-               # proxyAddresses: [smtp|SMTP]:
+               # proxyAddresses: [smtp]:
                # and also discard this starting string, so that $mail is only the
                # address without any other characters...
 
-               $mail =~ s/^(smtp|SMTP)[\:\$]//gs;
+               $mail =~ s/^smtp[\:\$]//gs;
 
                if ($mail !~ m/[\{\}\\\/]/ && $mail =~ m/^\S+\@\S+$/) {
                    $umails->{$mail} = 1;