mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 18:10:11 +01:00
gui parser fix
This commit is contained in:
parent
878c361f1f
commit
fbd19b5e28
@ -154,8 +154,8 @@ class ModelSearchMessage extends Model {
|
|||||||
$is_header = 0;
|
$is_header = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(preg_match("/^Content-Type:/i", $l)) $state = "CONTENT_TYPE";
|
if($is_header == 1 && preg_match("/^Content-Type:/i", $l)) $state = "CONTENT_TYPE";
|
||||||
if(preg_match("/^Content-Transfer-Encoding:/i", $l)) $state = "CONTENT_TRANSFER_ENCODING";
|
if($is_header == 1 && preg_match("/^Content-Transfer-Encoding:/i", $l)) $state = "CONTENT_TRANSFER_ENCODING";
|
||||||
|
|
||||||
if($state == "CONTENT_TYPE"){
|
if($state == "CONTENT_TYPE"){
|
||||||
$x = strstr($l, "boundary");
|
$x = strstr($l, "boundary");
|
||||||
@ -163,7 +163,7 @@ class ModelSearchMessage extends Model {
|
|||||||
$x = preg_replace("/boundary =/", "boundary=", $x);
|
$x = preg_replace("/boundary =/", "boundary=", $x);
|
||||||
$x = preg_replace("/boundary= /", "boundary=", $x);
|
$x = preg_replace("/boundary= /", "boundary=", $x);
|
||||||
|
|
||||||
$x = preg_replace("/\"/", "", $x);
|
$x = preg_replace("/\"\;{0,1}/", "", $x);
|
||||||
$x = preg_replace("/\'/", "", $x);
|
$x = preg_replace("/\'/", "", $x);
|
||||||
|
|
||||||
$b = explode("boundary=", $x);
|
$b = explode("boundary=", $x);
|
||||||
@ -221,6 +221,8 @@ class ModelSearchMessage extends Model {
|
|||||||
|
|
||||||
$charset = $body_chunk = "";
|
$charset = $body_chunk = "";
|
||||||
|
|
||||||
|
$is_header = 1;
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user