13-Mar-2013, 12:59 PM
Hello,
Thank you for the huge ammount of time you devoted to make commentics and to help the forum users.
There may be a bug in your program code concerning the username, inter alia:
I don't think that this is wanted since the error message which displays in frontend is "The name must start with a letter and optionally contain - & ".
In functions/form.php from line 150, your Reg Ex (in preg_replace) strips the numbers in $cmtx_default_name, even if there is only one between the letters. Which leads to the above non comprehensive error message.
Solution is to replace the reg ex:
with
And it's fixed.
You can test it here : http://www.solmetra.com/scripts/regex/index.php
Edit : Sorry for the double post, it was a misuse of the browser back button.
Thank you for the huge ammount of time you devoted to make commentics and to help the forum users.
There may be a bug in your program code concerning the username, inter alia:
I don't think that this is wanted since the error message which displays in frontend is "The name must start with a letter and optionally contain - & ".
In functions/form.php from line 150, your Reg Ex (in preg_replace) strips the numbers in $cmtx_default_name, even if there is only one between the letters. Which leads to the above non comprehensive error message.
Solution is to replace the reg ex:
Code:
/[^\p{L}&\-\'. ]/u
Code:
/[^\p{L}\p{N}*&\-\'. ]/u
And it's fixed.
You can test it here : http://www.solmetra.com/scripts/regex/index.php
Edit : Sorry for the double post, it was a misuse of the browser back button.