PFUrlUtils Methods |
The PFUrlUtils type exposes the following members.
Name | Description | |
---|---|---|
AppendSourceUrl(String) |
Appends current request url as parameter of baseUrl.
| |
AppendSourceUrl(String, String) |
Appends sourceUrl as parameter of baseUrl.
| |
ExtractSourceUrl |
Extracts source url from current request url.
| |
ExtractSourceUrl(String) |
Extracts (sanitized) source url from urlWithSource.
| |
SanitizeSourceUrl |
Returns a sanitized source url that is safe to redirect to or to put inside of a href attribute.
If the given url is not relative then "/" will be returned instead.
This prevents unwanted redirections to potentially malicious external websites.
This also protects against reflected XSS attacks using the "javascript:" protocol.
|