mirror of
https://github.com/itflow-org/itflow
synced 2026-09-23 23:21:16 +00:00
Bump imapengine from 1.25.4 to 1.25.6 and dependencies
This commit is contained in:
12
libs/vendor/guzzlehttp/psr7/src/Uri.php
vendored
12
libs/vendor/guzzlehttp/psr7/src/Uri.php
vendored
@@ -69,7 +69,7 @@ class Uri implements UriInterface, \JsonSerializable
|
||||
if ($uri !== '') {
|
||||
$parts = UriParser::parse($uri);
|
||||
if ($parts === false) {
|
||||
throw new MalformedUriException(\sprintf('Unable to parse URI: %s', DiagnosticValue::escape($uri)));
|
||||
throw new MalformedUriException(\sprintf('Unable to parse URI: %s', Utils::redactUriStringForMessage($uri)));
|
||||
}
|
||||
try {
|
||||
$this->applyParts($parts);
|
||||
@@ -411,7 +411,10 @@ class Uri implements UriInterface, \JsonSerializable
|
||||
* components, including the leading slash the string form adds to a
|
||||
* rootless path when an authority is present; for subclasses and other
|
||||
* implementations the path is split from the string form per RFC 3986
|
||||
* Appendix B, without validating or decoding any other component.
|
||||
* Appendix B, without validating or decoding any other component. The
|
||||
* scheme is only split off when the instance reports one, as a relative
|
||||
* reference can begin with a segment containing a colon that the Appendix
|
||||
* B expression would otherwise read as a scheme.
|
||||
*
|
||||
* @throws \RuntimeException If the path cannot be split from the string form.
|
||||
*
|
||||
@@ -429,7 +432,10 @@ class Uri implements UriInterface, \JsonSerializable
|
||||
return $uri->path;
|
||||
}
|
||||
|
||||
$count = preg_match('%^(?:[^:/?#]+:)?(?://[^/?#]*)?([^?#]*)%', (string) $uri, $matches);
|
||||
$pattern = $uri->getScheme() === ''
|
||||
? '%^(?://[^/?#]*)?([^?#]*)%'
|
||||
: '%^(?:[^:/?#]+:)?(?://[^/?#]*)?([^?#]*)%';
|
||||
$count = preg_match($pattern, (string) $uri, $matches);
|
||||
|
||||
if ($count === false) {
|
||||
throw new \RuntimeException('Unable to read the URI path: '.preg_last_error_msg());
|
||||
|
||||
Reference in New Issue
Block a user