From e16b1958c35ac14d96bb7667459c967643819b8f Mon Sep 17 00:00:00 2001 From: Leonidas Poulopoulos <leopoul@noc.grnet.gr> Date: Tue, 29 Jan 2013 17:10:19 +0200 Subject: [PATCH] Patch that fixes multiple mail atributes returned by shib --- flowspec/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flowspec/views.py b/flowspec/views.py index 2e68324..ad8111d 100644 --- a/flowspec/views.py +++ b/flowspec/views.py @@ -471,6 +471,6 @@ def send_new_mail(subject, message, from_email, recipient_list, bcc_list): def lookupShibAttr(attrmap, requestMeta): for attr in attrmap: - if attr in requestMeta: + if (attr in requestMeta) & (len(requestMeta[attr]) > 0): return requestMeta[attr] return '' \ No newline at end of file -- GitLab