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

Mail_RFC822::_validateRoute ( route )

Function to validate a route, which is: route = 1#("@" domain) ":"


string$routeThe string to check.
mixed False on failure, or the validated $route on success.

Definition at line 743 of file z_RFC822.php.

References _validateDomain().

Referenced by _validateRouteAddr().

        // Split on comma.
        $domains = explode(',', trim($route));

        foreach ($domains as $domain) {
            $domain = str_replace('@', '', trim($domain));
            if (!$this->_validateDomain($domain)) return false;

        return $route;

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index