From e177e13a0c82a87b21d327c75649edcdaae321b9 Mon Sep 17 00:00:00 2001 From: Sean Johnson Date: Sat, 18 Feb 2017 10:53:21 -0600 Subject: [PATCH] Update boundary regex to match RFC1341 (#283) * Update boundary regex to match RFC1341 --- tests/RequestBuilderTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/RequestBuilderTest.php b/tests/RequestBuilderTest.php index e5be740..b1f332a 100644 --- a/tests/RequestBuilderTest.php +++ b/tests/RequestBuilderTest.php @@ -40,6 +40,6 @@ class RequestBuilderTest extends \PHPUnit_Framework_TestCase $this->assertContains('username', $body); $this->assertContains('Stockholm', $body); $this->assertContains('city', $body); - $this->assertRegExp('|^multipart/form-data; boundary=[0-9a-z]+$|si', $contentType); + $this->assertRegExp('|^multipart/form-data; boundary=(?P"?)[\w\Q\'()+,-./:=?\E]{1,69}(?P=quote)$|si', $contentType); } }