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

Mail_RFC822::_validateQuotedString ( qstring )

Function to validate quoted string, which is: quoted-string = <"> *(qtext/quoted-pair) <">


string$qstringThe string to check
boolean Success or failure.

Definition at line 580 of file z_RFC822.php.

Referenced by _validatePhrase().

        // Leading and trailing "
        $qstring = substr($qstring, 1, -1);

        // Perform check, removing quoted characters first.
        return !preg_match('/[\x0D\\\\"]/', preg_replace('/\\\\./', '', $qstring));

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index