developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 10 years ago

Closed 10 years ago

#1065 closed bug (fixed)

jFilter::isEmail should accept domains without any dot

Reported by: bricet Owned by:
Priority: normal Milestone: Jelix 1.0.12
Component: jelix:utils Version: trunk
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version: 5.2.10 (I suppose >= 5.2.0)

Description

It seems, according to http://tools.ietf.org/html/rfc5321#section-2.3.5 that email without any dot in domain name are valid. This is currently not the case in Jelix exept if we use PHP's internal filter_var($val, FILTER_VALIDATE_EMAIL). Indeed, it accepts such emails according to bug report http://bugs.php.net/47772

Testapp should be changed accordingly, also.

Attachments (1)

ticket_1065.diff (2.7 KB) - added by bricet 10 years ago.

Download all attachments as: .zip

Change History (7)

Changed 10 years ago by bricet

comment:1 Changed 10 years ago by bricet

  • review set to review?

comment:2 Changed 10 years ago by bricet

  • Php version set to 5.2.10 (I suppose >= 5.2.0)

comment:3 Changed 10 years ago by laurentj

  • Milestone set to Jelix 1.1.6

comment:4 Changed 10 years ago by laurentj

  • review changed from review? to review+

Ok, but we have to deal with php version in tests, because in my php 5.2.6, it seems that filter_email doesn't accept a single name in the domain name.

comment:5 Changed 10 years ago by bricet

Changelog of PHP is quite unclear about this bug, but according to dates and looking to the following links, I can deduce that this behaviour is for PHP >= 5.2.10

http://bugs.php.net/47772 http://php.net/releases/index.php

Note: See TracTickets for help on using tickets.