[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Summary view] [Print] [Text view]
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 class HTMLPurifier_URIScheme_mailto extends HTMLPurifier_URIScheme { 13 14 public $browsable = false; 15 16 public function validate(&$uri, $config, $context) { 17 parent::validate($uri, $config, $context); 18 $uri->userinfo = null; 19 $uri->host = null; 20 $uri->port = null; 21 // we need to validate path against RFC 2368's addr-spec 22 return true; 23 } 24 25 } 26 27 // vim: et sw=4 sts=4
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |