Logo Search packages:      
Sourcecode: d-push version File versions  Download package

Mail_RFC822::_validateDliteral ( dliteral )

Function to validate a domain literal: domain-literal = "[" *(dtext / quoted-pair) "]"

private

Parameters:
string$dliteralThe string to check.
Returns:
boolean Success or failure.

Definition at line 814 of file z_RFC822.php.

Referenced by _validateSubdomain().

    {
        return !preg_match('/(.)[][\x0D\\\\]/', $dliteral, $matches) && $matches[1] != '\\';
    }

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index