Re: Syntax of email address rejected
Bruno Costacurta <[email protected]> Wed, 05 Mar 2014 22:37:54 +0100
| Newsgroups | gmane.comp.horde.turba |
|---|---|
| Message-ID | <20140305223754.Horde.pQ6A1i-03V_v-jwuJAS-FQ1@webmail.costacurta.org> |
Quoting Jan Schneider <[email protected]>: ... >> Where is the code of the syntax email address checking ? > > Horde_Form_Type_email#validateEmailAddress() in Horde/Form/Type.php. > -- I added log info into the function Horde_Form_Type_email#validateEmailAddress() in Horde/Form/Type.php ... ini_set("error_log", "/tmp/php-error.log"); error_log( $email ); ... to trace the value given to thsi function. Very strange behaviour when entering email address into the addressbook. It's like if eg. the caractere '1' is a separator : Log file : email '[email protected]' --> OK [05-Mar-2014 21:23:42 UTC] [email protected] email '[email protected]' --> Not-Ok [05-Mar-2014 21:25:31 UTC] john [05-Mar-2014 21:25:31 UTC] @mail.com Why is the email address broke on certain caracter like '1' ? My attributes.local.php contains : $attributes['homeEmail'] = array( 'label' => _("Home Email"), 'type' => 'email', 'required' => false, 'params' => array('allow_multi' => true, 'size' => 50, 'maxlength' => 50,'strip_domain' => false, 'link_compose' => true) ); $attributes['workEmail'] = array( 'label' => _("Work Email"), 'type' => 'email', 'required' => false, 'params' => array('allow_multi' => true, 'size' => 50, 'maxlength' => 50,'strip_domain' => false, 'link_compose' => true) ); Bye, Bruno -- turba mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: [email protected]