java.lang.Object | |
↳ | com.atlassian.jira.web.action.RedirectSanitiserImpl |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a boolean indicating whether redirecting to the given URI is allowed or not.
| |||||||||||
Constructs a safe redirect URL out of user-provided input.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the canonical base URL for JIRA.
|
[Expand]
Inherited Methods | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object | |||||||||||||||
From interface
com.atlassian.jira.web.action.RedirectSanitiser
|
Returns a boolean indicating whether redirecting to the given URI is allowed or not.
This method returns false if theredirectUri
is an absolute URI and it points to a domain that is not
this JIRA instance's domain, and true otherwise.
If the uri is in the form //xxx then it is not allowed as per JRA-27405.redirectUri | a String containing a URI |
---|
Constructs a safe redirect URL out of user-provided input. This means checking that the URL has an HTTP or
HTTPS scheme, and that it does not redirect to a different domain (i.e. not JIRA). If the redirectUrl
does not meet these conditions, this method returns null.
redirectUrl | a String containing the redirect URL |
---|
Returns the canonical base URL for JIRA.