From bd0551b22076b82a6d49e9f7a2b2e0c90a1b2326 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Fri, 05 Feb 2016 07:25:27 -0500 Subject: [PATCH] Secure also downloads of addressbook exports, managesieve script exports and Enigma keys exports --- plugins/new_user_identity/new_user_identity.php | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/new_user_identity/new_user_identity.php b/plugins/new_user_identity/new_user_identity.php index f7d60d4..b905488 100644 --- a/plugins/new_user_identity/new_user_identity.php +++ b/plugins/new_user_identity/new_user_identity.php @@ -67,7 +67,7 @@ return $args; } - $identities = $this->rc->user->list_identities(); + $identities = $this->rc->user->list_emails(); $ldap_entry = $this->lookup_user_name(array( 'user' => $this->rc->user->data['username'], 'host' => $this->rc->user->data['mail_host'], @@ -75,7 +75,7 @@ foreach ((array) $ldap_entry['email_list'] as $email) { foreach ($identities as $identity) { - if ($identity['email'] == $email ) { + if ($identity['email'] == $email) { continue 2; } } -- Gitblit v1.9.1