ignore whitespace before and after equal sign in dkim tags

This commit is contained in:
Ralf Becker 2013-01-30 16:40:41 +00:00
parent 15ecaec4f4
commit 685cc0ab26

View File

@ -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";