Update Kirby to 3.7.4
This commit is contained in:
0
kirby/src/Http/Cookie.php
Executable file → Normal file
0
kirby/src/Http/Cookie.php
Executable file → Normal file
0
kirby/src/Http/Environment.php
Executable file → Normal file
0
kirby/src/Http/Environment.php
Executable file → Normal file
0
kirby/src/Http/Exceptions/NextRouteException.php
Executable file → Normal file
0
kirby/src/Http/Exceptions/NextRouteException.php
Executable file → Normal file
0
kirby/src/Http/Header.php
Executable file → Normal file
0
kirby/src/Http/Header.php
Executable file → Normal file
0
kirby/src/Http/Idn.php
Executable file → Normal file
0
kirby/src/Http/Idn.php
Executable file → Normal file
4
kirby/src/Http/Params.php
Executable file → Normal file
4
kirby/src/Http/Params.php
Executable file → Normal file
@@ -73,7 +73,7 @@ class Params extends Query
|
||||
$paramValue = $paramParts[1] ?? null;
|
||||
|
||||
if ($paramKey !== null) {
|
||||
$params[$paramKey] = $paramValue;
|
||||
$params[rawurldecode($paramKey)] = $paramValue ? rawurldecode($paramValue) : null;
|
||||
}
|
||||
|
||||
unset($path[$index]);
|
||||
@@ -140,7 +140,7 @@ class Params extends Query
|
||||
|
||||
foreach ($this as $key => $value) {
|
||||
if ($value !== null && $value !== '') {
|
||||
$params[] = $key . $separator . $value;
|
||||
$params[] = rawurlencode($key) . $separator . rawurlencode($value);
|
||||
}
|
||||
}
|
||||
|
||||
|
0
kirby/src/Http/Path.php
Executable file → Normal file
0
kirby/src/Http/Path.php
Executable file → Normal file
0
kirby/src/Http/Query.php
Executable file → Normal file
0
kirby/src/Http/Query.php
Executable file → Normal file
0
kirby/src/Http/Remote.php
Executable file → Normal file
0
kirby/src/Http/Remote.php
Executable file → Normal file
0
kirby/src/Http/Request.php
Executable file → Normal file
0
kirby/src/Http/Request.php
Executable file → Normal file
0
kirby/src/Http/Request/Auth.php
Executable file → Normal file
0
kirby/src/Http/Request/Auth.php
Executable file → Normal file
0
kirby/src/Http/Request/Auth/BasicAuth.php
Executable file → Normal file
0
kirby/src/Http/Request/Auth/BasicAuth.php
Executable file → Normal file
0
kirby/src/Http/Request/Auth/BearerAuth.php
Executable file → Normal file
0
kirby/src/Http/Request/Auth/BearerAuth.php
Executable file → Normal file
0
kirby/src/Http/Request/Auth/SessionAuth.php
Executable file → Normal file
0
kirby/src/Http/Request/Auth/SessionAuth.php
Executable file → Normal file
0
kirby/src/Http/Request/Body.php
Executable file → Normal file
0
kirby/src/Http/Request/Body.php
Executable file → Normal file
0
kirby/src/Http/Request/Data.php
Executable file → Normal file
0
kirby/src/Http/Request/Data.php
Executable file → Normal file
0
kirby/src/Http/Request/Files.php
Executable file → Normal file
0
kirby/src/Http/Request/Files.php
Executable file → Normal file
0
kirby/src/Http/Request/Query.php
Executable file → Normal file
0
kirby/src/Http/Request/Query.php
Executable file → Normal file
0
kirby/src/Http/Response.php
Executable file → Normal file
0
kirby/src/Http/Response.php
Executable file → Normal file
0
kirby/src/Http/Route.php
Executable file → Normal file
0
kirby/src/Http/Route.php
Executable file → Normal file
0
kirby/src/Http/Router.php
Executable file → Normal file
0
kirby/src/Http/Router.php
Executable file → Normal file
0
kirby/src/Http/Server.php
Executable file → Normal file
0
kirby/src/Http/Server.php
Executable file → Normal file
9
kirby/src/Http/Uri.php
Executable file → Normal file
9
kirby/src/Http/Uri.php
Executable file → Normal file
@@ -90,6 +90,13 @@ class Uri
|
||||
*/
|
||||
protected $scheme = 'http';
|
||||
|
||||
/**
|
||||
* Supported schemes
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected static $schemes = ['http', 'https', 'ftp'];
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
@@ -446,7 +453,7 @@ class Uri
|
||||
*/
|
||||
public function setScheme(string $scheme = null)
|
||||
{
|
||||
if ($scheme !== null && in_array($scheme, ['http', 'https', 'ftp']) === false) {
|
||||
if ($scheme !== null && in_array($scheme, static::$schemes) === false) {
|
||||
throw new InvalidArgumentException('Invalid URL scheme: ' . $scheme);
|
||||
}
|
||||
|
||||
|
0
kirby/src/Http/Url.php
Executable file → Normal file
0
kirby/src/Http/Url.php
Executable file → Normal file
0
kirby/src/Http/Visitor.php
Executable file → Normal file
0
kirby/src/Http/Visitor.php
Executable file → Normal file
Reference in New Issue
Block a user