浏览代码

preg_match should look at field instead of value

stekkel 23 年之前
父节点
当前提交
3fe11b89f6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      class/mime.class.php

+ 1 - 1
class/mime.class.php

@@ -60,7 +60,7 @@ class rfc822_header
             {
                 $field = substr($line,0,$pos);
                 $value = trim(substr($line,$pos+1));
-                if(!preg_match('/^X.*/',$value)) {
+                if(!preg_match('/^X.*/i',$field)) {
                     $value = $this->stripComments($value);
                 }
                 $this->parseField($field,$value);