projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
using split() with wrong perl regexes will not work.
[squirrelmail.git]
/
class
/
mime
/
Rfc822Header.class.php
diff --git
a/class/mime/Rfc822Header.class.php
b/class/mime/Rfc822Header.class.php
index ccb38c55590129af33eb6ee5d3777d5aa7828e1c..eb6576cf8ef321766db0a4c0237a46fbf9ded6ad 100644
(file)
--- a/
class/mime/Rfc822Header.class.php
+++ b/
class/mime/Rfc822Header.class.php
@@
-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) ) {