提交的内容
This commit is contained in:
2
vendor/guzzlehttp/psr7/src/Header.php
vendored
Executable file → Normal file
2
vendor/guzzlehttp/psr7/src/Header.php
vendored
Executable file → Normal file
@ -22,7 +22,7 @@ final class Header
|
||||
foreach ((array) $header as $value) {
|
||||
foreach (self::splitList($value) as $val) {
|
||||
$part = [];
|
||||
foreach (preg_split('/;(?=([^"]*"[^"]*")*[^"]*$)/', $val) as $kvp) {
|
||||
foreach (preg_split('/;(?=([^"]*"[^"]*")*[^"]*$)/', $val) ?: [] as $kvp) {
|
||||
if (preg_match_all('/<[^>]+>|[^=]+/', $kvp, $matches)) {
|
||||
$m = $matches[0];
|
||||
if (isset($m[1])) {
|
||||
|
||||
Reference in New Issue
Block a user