Home::hasValidDomain()
Checks if the given Uri has the same domain as the index URL of the Kirby installation. This is used to block external URLs to third-party domains as redirect options.
Home::hasValidDomain(Kirby\Http\Uri $uri): bool
Parameters
| Name | Type | Default |
|---|---|---|
| $urirequired | Kirby\Http\Uri |
no default value |
Return type
bool