SproutCMS

This is the code documentation for the SproutCMS project

function validateUrl()

Validate that a given URL is absolute and for this site

Allows for subdomains of the current site, so example.com can share a link to app.example.com
This is a ends-with chec, so example.com cannot share example.com.au

Usage

bool EmailShareController::validateUrl ( string $url );

Arguments

  1. string $url

Return value

  • bool
    True if valid, false if not