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 ccb38c55590129af33eb6ee5d3777d5aa7828e1c..eb6576cf8ef321766db0a4c0237a46fbf9ded6ad 100644 (file)
@@ -656,7 +656,7 @@ class Rfc822Header {
      */
     function parsePriority($sValue) {
         // don't use function call inside array_shift.
      */
     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) ) {
         $value = strtolower(array_shift($aValue));
 
         if ( is_numeric($value) ) {