فهرست منبع

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);