using split() with wrong perl regexes will not work.
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 17 May 2007 15:39:06 +0000 (15:39 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 17 May 2007 15:39:06 +0000 (15:39 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12397 7612ce4b-ef26-0410-bec9-ea0150e637f0

class/mime/Rfc822Header.class.php

index ccb38c5..eb6576c 100644 (file)
@@ -656,7 +656,7 @@ class Rfc822Header {
      */
     function parsePriority($sValue) {
         // don't use function call inside array_shift.
-        $aValue = split('/\w/',trim($sValue));
+        $aValue = preg_split('/\s/',trim($sValue));
         $value = strtolower(array_shift($aValue));
 
         if ( is_numeric($value) ) {