Compare commits

..

5 Commits

Author SHA1 Message Date
Simon Sessingø d75af212e9 Merge pull request #693 from skipperbent/v5-development
Version 5.4.1.2
2023-11-27 08:00:51 +01:00
Simon Sessingø 3c03f08edf Merge pull request #692 from skipperbent/v5-development
Version 5.4.1.1
2023-11-27 06:55:31 +01:00
Simon Sessingø ef4756c45b Merge pull request #690 from skipperbent/v5-development
Version 5.4.1.0
2023-11-27 05:58:01 +01:00
Simon Sessingø 36dda20bbe Merge pull request #688 from skipperbent/v5-development
Version 5.4.0.1
2023-11-21 22:27:45 +01:00
Simon Sessingø e22ea70047 Merge pull request #686 from skipperbent/v5-development
Version 5.4.0.0
2023-11-21 16:15:48 +01:00
4 changed files with 8 additions and 8 deletions
@@ -98,7 +98,7 @@ class BaseCsrfVerifier implements IMiddleware
*/
public function handle(Request $request): void
{
if ($this->skip($request) === false && ($request->isPostBack() === true || $request->isPostBack() === true && $this->isIncluded($request) === true)) {
if ($this->skip($request) === false && ($request->isPostBack() === true || $this->isIncluded($request) === true)) {
$token = $request->getInputHandler()->value(
static::POST_KEY,
-5
View File
@@ -405,11 +405,6 @@ class Request
*/
public function setHost(?string $host): void
{
// Strip any potential ports from hostname
if (strpos((string)$host, ':') !== false) {
$host = strstr($host, strrchr($host, ':'), true);
}
$this->host = $host;
}
+6 -2
View File
@@ -72,7 +72,7 @@ class Url implements JsonSerializable
public function parse(?string $url, bool $setOriginalPath = false): self
{
if ($url !== null) {
if ($url !== null && $url !== '/') {
$data = $this->parseUrl($url);
$this->scheme = $data['scheme'] ?? null;
@@ -95,7 +95,6 @@ class Url implements JsonSerializable
$this->setQueryString($data['query']);
}
}
return $this;
}
@@ -165,6 +164,11 @@ class Url implements JsonSerializable
*/
public function setHost(string $host): self
{
// Strip any potential ports from hostname
if (strpos($host, ':') !== false) {
$host = strstr($host, strrchr($host, ':'), true);
}
$this->host = $host;
return $this;
+1
View File
@@ -562,6 +562,7 @@ class Router
if ($this->request->getRewriteRoute() !== null) {
$this->processedRoutes[] = $this->request->getRewriteRoute();
$this->request->setHasPendingRewrite(false);
}
return $this->routeRequest();