protected TrustedRedirectResponse::isSafe($url)
Returns whether the URL is considered as safe to redirect to.
string $url: The URL checked for safety.
bool
Overrides SecuredRedirectResponse::isSafe
protected function isSafe($url) { return !empty($this->trustedUrls[$url]) || $this->isLocal($url); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Routing!TrustedRedirectResponse.php/function/TrustedRedirectResponse::isSafe/8.1.x