From 685cc0ab2669083d7d784989578d70c71815b944 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 30 Jan 2013 16:40:41 +0000 Subject: [PATCH] ignore whitespace before and after equal sign in dkim tags --- phpgwapi/inc/class.ischedule_server.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.ischedule_server.inc.php b/phpgwapi/inc/class.ischedule_server.inc.php index 7ec8f74210..341ee2ae4c 100644 --- a/phpgwapi/inc/class.ischedule_server.inc.php +++ b/phpgwapi/inc/class.ischedule_server.inc.php @@ -362,7 +362,7 @@ class ischedule_server extends groupdav { // parse dkim signature, after unfolding it if (!isset($headers['dkim-signature']) || - !preg_match_all('/[\t\s]*([a-z]+)=([^;]+);?/i', + !preg_match_all('/[\t\s]*([a-z]+)\s*=\s*([^;]+);?/i', preg_replace("|\r\n\s+|", "", $headers['dkim-signature']), $matches)) { $error = "Can't parse DKIM signature";