Update Kirby to 3.7.4
This commit is contained in:
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
+2
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
+8
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Executable → Regular
Executable → Regular
Reference in New Issue
Block a user