Upgrade to 4.0.3

This commit is contained in:
Bastian Allgeier
2024-01-10 11:32:26 +01:00
parent 270ffc1119
commit 5c44c8fcfd
16 changed files with 614 additions and 590 deletions

View File

@@ -753,6 +753,10 @@ class Environment
return true;
}
if (Str::endsWith($host, '.ddev.site') === true) {
return true;
}
// collect all possible visitor ips
$ips = [
$this->get('REMOTE_ADDR'),

View File

@@ -186,7 +186,7 @@ class Url
$uri->slash = false;
$url = $base ? $uri->base() : $uri->toString();
$url = str_replace('www.', '', $url);
$url = str_replace('www.', '', $url ?? '');
return Str::short($url, $length, $rep);
}