Explorar o código

preg_match should look at field instead of value

stekkel %!s(int64=23) %!d(string=hai) anos
pai
achega
3fe11b89f6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
                 $field = substr($line,0,$pos);
                 $value = trim(substr($line,$pos+1));
                 $value = trim(substr($line,$pos+1));
-                if(!preg_match('/^X.*/',$value)) {
+                if(!preg_match('/^X.*/i',$field)) {
                     $value = $this->stripComments($value);
                     $value = $this->stripComments($value);
                 }
                 }
                 $this->parseField($field,$value);
                 $this->parseField($field,$value);