PDA

View Full Version : Error in checking email-Adress


vogelor
2nd February 2007, 10:36
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 "o+a.vogel@muv.com" (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)

till
2nd February 2007, 18:06
The code is in the file:

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

vogelor
5th February 2007, 12:42
The code is in the file:

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


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

till
5th February 2007, 13:42
I've changed it in SVN.

Thanks,

Till