Changeset 2775

Show
Ignore:
Timestamp:
06/09/2008 11:42:22 AM (6 months ago)
Author:
Shadowhand
Message:

Fixing a potential bug in html::mailto() with and empty email address

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/helpers/html.php

    r2734 r2775  
    166166        public static function mailto($email, $title = NULL, $attributes = NULL) 
    167167        { 
     168                if (empty($email)) 
     169                        return $title; 
     170 
    168171                // Remove the subject or other parameters that do not need to be encoded 
    169172                if (strpos($email, '?') !== FALSE)