LJ::check_referer

LJ::check_referer — Checks if the user is coming from a given URI.

Use

LJ::check_referer(uri, referer);

Arguments

  • uri. string; the URI we want the user to come from.

  • referer. string; the location the user is posting from. If not supplied, will be retrieved with BML::get_client_header. In general, you don't want to pass this yourself unless you already have it or know we can't get it from BML.

Source:

cgi-bin/weblib.pl

Returns:

1 if they're coming from that URI, else undef