Click or drag to resize

PFUrlUtils Class

Provides methods appending or extracting parameters from URLs.
Inheritance Hierarchy
SystemObject
  Packflow.InterfacePFUrlUtils

Namespace:  Packflow.Interface
Assembly:  MicaSystems.Packflow.Interface (in MicaSystems.Packflow.Interface.dll) Version: 1.0.0.0 (2.0.0.223)
Syntax
C#
public static class PFUrlUtils

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
Fields
  NameDescription
Public fieldStatic memberParameterName_SourceUrl
Name of the source url parameter in Packflow.
Top
See Also