Skip to content

Commit 066128c

Browse files
authored
update getBoundary - allow ending with space or ;
1 parent 0448830 commit 066128c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Structure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function findContentType(){
100100
* Determine the message content type
101101
*/
102102
public function getBoundary(){
103-
$boundary = $this->header->find("/boundary\=\"?(.*)\"?/");
103+
$boundary = $this->header->find("/boundary\=\"?(.*?)[\";\s]/");
104104
return str_replace('"', '', $boundary);
105105
}
106106

0 commit comments

Comments
 (0)