SproutCMS

This is the code documentation for the SproutCMS project

function checkRedirect()

Checks the provided argument is a valid redirect URL to the local site

This is designed to prevent redirects to other domains, bad pages, etc

Usage

unknown Url::checkRedirect ( string $url [, bool $allow_querysting ] );

Arguments

  1. string $url
  2. bool $allow_querysting = FALSE
    If true, allow querystrings too