Error in checking email-Adress

Discussion in 'General' started by vogelor, Feb 2, 2007.

  1. vogelor

    vogelor ISPConfig Developer ISPConfig Developer

    i don't think, this is the right forum but i don't know, where to post this ;-)

    there is a error in checking the email-address.

    as you can read in RFC 2822 the sign "+" is allowed in email-addresses.
    if i like to create rhe mail "[email protected]" (which is allowed in RFC 2822) i get a error.

    i can fix this by my own and send a fix, but i'd like to know WHERE the code is (in which file)
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The code is in the file:

    /home/admispconfig/ispconfig/lib/plugins/isp_username.plugin.php
     
  3. vogelor

    vogelor ISPConfig Developer ISPConfig Developer


    OK - found it!

    to one of the programmers ;-)

    just change

    // .berpr.fung email mittels regex, bei Fehler l.schen
    if(!preg_match("/^[a-zA-Z0-9][\w\.\-\_]{0,60}$/",$email)) {

    to
    // .berpr.fung email mittels regex, bei Fehler l.schen
    if(!preg_match("/^[a-zA-Z0-9][\w\.\-\+\_]{0,60}$/",$email)) {

    and then the error correction is "a little better" ;-)

    P.S. you have to change it in TWO Places
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    I've changed it in SVN.

    Thanks,

    Till
     

Share This Page