[turba] Syntax of email address rejected
Bruno Costacurta
techie at costacurta.org
Wed Mar 5 21:37:54 UTC 2014
Quoting Jan Schneider <jan at horde.org>:
...
>> 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 'john333 at mail.com' --> OK
[05-Mar-2014 21:23:42 UTC] john333 at mail.com
email 'john1 at mail.com' --> 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
More information about the turba
mailing list