Source for file mailto.php

Documentation is available at mailto.php

  1. <?php
  2.  
  3. // VERY RELAXED! Shouldn't cause problems, not even Firefox checks if the
  4. // email is valid, but be careful!
  5.  
  6. /**
  7.  * Validates mailto (for E-mail) according to RFC 2368
  8.  * @todo Validate the email address
  9.  * @todo Filter allowed query parameters
  10.  */
  11.  
  12.     
  13.     public $browsable = false;
  14.     
  15.     public function validate(&$uri$config$context{
  16.         parent::validate($uri$config$context);
  17.         $uri->userinfo null;
  18.         $uri->host     null;
  19.         $uri->port     null;
  20.         // we need to validate path against RFC 2368's addr-spec
  21.         return true;
  22.     }
  23.     
  24. }

Documentation generated on Thu, 19 Jun 2008 18:49:45 -0400 by phpDocumentor 1.4.2