You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2015-04-13 14:48:36

stoatwblr
Member
Registered: 2014-04-13
Posts: 118

Email validation broken (very badly broken)

GLPI uses a "popular method" for parsing/validating email addresses


Unfortunately the "popular method" is WRONG as it relies on a number of assumptions made by someone who didn't bother actually reading mail standards before writing the parser.


Among other things it will disallow email addresses such as fred+mailbox@dom.ain


There is a "Correct", RFC-(2)822 standards-compliant PHP mail parsing module at http://www.iamcal.com/publish/articles/ … sing_email


current version at http://code.iamcal.com/php/rfc822/


The full regex (23kB) is at http://code.iamcal.com/php/rfc822/full_regexp.txt

Offline

Board footer

Powered by FluxBB