Click or drag to resize

PFUrlUtils Methods

The PFUrlUtils type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAppendSourceUrl(String)
Appends current request url as parameter of baseUrl.
Public methodStatic memberAppendSourceUrl(String, String)
Appends sourceUrl as parameter of baseUrl.
Public methodStatic memberExtractSourceUrl
Extracts source url from current request url.
Public methodStatic memberExtractSourceUrl(String)
Extracts (sanitized) source url from urlWithSource.
Public methodStatic memberSanitizeSourceUrl
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.
Top
See Also