Package com.peterphi.usermanager.service
Class RedirectValidatorService
java.lang.Object
com.peterphi.usermanager.service.RedirectValidatorService
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionrewriteRedirect
(String url) Rewrite a redirect URL if necessary to ensure that the redirect will go to a safe URL (either a trusted URL or to a warning that an unsafe redirection is about to happen)
-
Field Details
-
allowAllRelativeRedirects
@Inject(optional=true) public boolean allowAllRelativeRedirects
-
-
Constructor Details
-
RedirectValidatorService
public RedirectValidatorService()
-
-
Method Details
-
rewriteRedirect
Rewrite a redirect URL if necessary to ensure that the redirect will go to a safe URL (either a trusted URL or to a warning that an unsafe redirection is about to happen)- Parameters:
url
-- Returns:
-
repopulateServiceUrls
-