|
@@ -88,6 +88,14 @@ class Parameters implements ParametersInterface
|
|
throw new \InvalidArgumentException("Invalid parameters URI: $uri");
|
|
throw new \InvalidArgumentException("Invalid parameters URI: $uri");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (
|
|
|
|
+ isset($parsed['host'])
|
|
|
|
+ && false !== strpos($parsed['host'], '[')
|
|
|
|
+ && false !== strpos($parsed['host'], ']')
|
|
|
|
+ ) {
|
|
|
|
+ $parsed['host'] = substr($parsed['host'], 1, -1);
|
|
|
|
+ }
|
|
|
|
+
|
|
if (isset($parsed['query'])) {
|
|
if (isset($parsed['query'])) {
|
|
parse_str($parsed['query'], $queryarray);
|
|
parse_str($parsed['query'], $queryarray);
|
|
unset($parsed['query']);
|
|
unset($parsed['query']);
|
|
@@ -121,6 +129,14 @@ class Parameters implements ParametersInterface
|
|
throw new \InvalidArgumentException("Invalid parameters URI: $uri");
|
|
throw new \InvalidArgumentException("Invalid parameters URI: $uri");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (
|
|
|
|
+ isset($parsed['host'])
|
|
|
|
+ && false !== strpos($parsed['host'], '[')
|
|
|
|
+ && false !== strpos($parsed['host'], ']')
|
|
|
|
+ ) {
|
|
|
|
+ $parsed['host'] = substr($parsed['host'], 1, -1);
|
|
|
|
+ }
|
|
|
|
+
|
|
if (isset($parsed['query'])) {
|
|
if (isset($parsed['query'])) {
|
|
parse_str($parsed['query'], $queryarray);
|
|
parse_str($parsed['query'], $queryarray);
|
|
unset($parsed['query']);
|
|
unset($parsed['query']);
|