Skip to content

Commit

Permalink
Webklex#126 - update regex to find boundary
Browse files Browse the repository at this point in the history
  • Loading branch information
MouMoutMan committed Apr 9, 2021
1 parent e1296d1 commit 1bd21c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Header.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public function find($pattern) {
* @return string|null
*/
public function getBoundary(){
$boundary = $this->find("/boundary\=(.*)/i");
$boundary = $this->find("/boundary=\"?([^\"]*)[\";\s]/i");

if ($boundary === null) {
return null;
Expand Down

0 comments on commit 1bd21c2

Please sign in to comment.