Click or drag to resize

PFUrlUtilsSanitizeSourceUrl Method

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.

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 string SanitizeSourceUrl(
	string sourceUrl
)

Parameters

sourceUrl
Type: SystemString

Return Value

Type: String
See Also