Particularly, it will make sure that the provided URL is allowed by the 'redirect.trustedsites' directive in the
configuration.
If the aforementioned option is not set or the URL does correspond to a trusted site, it performs a redirection
to it. If the site is not trusted, an exception will be thrown.
public static redirectUntrustedURL ( string $url, string[] $parameters = [] ) : void | ||
$url | string | The URL we should redirect to. This URL may include query parameters. If this URL is a relative URL (starting with '/'), then it will be turned into an absolute URL by prefixing it with the absolute URL to the root of the website. |
$parameters | string[] | An array with extra query string parameters which should be appended to the URL. The name of the parameter is the array index. The value of the parameter is the value stored in the index. Both the name and the value will be urlencoded. If the value is NULL, then the parameter will be encoded as just the name, without a value. |
Résultat | void | This function never returns. |