mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=11311
This commit is contained in:
parent
5dee5e8cde
commit
0ee4dda4f3
|
@ -11193,3 +11193,10 @@ David 18 Oct 2006
|
|||
|
||||
clientgui/
|
||||
ViewResources.cpp,h
|
||||
|
||||
Rom 18 Oct 2006
|
||||
- Bug Fix: Change the regex that validates email addresses in the manager to a 5 star rated
|
||||
expression. See http://regexlib.com/REDetails.aspx?regexp_id=328
|
||||
|
||||
clientgui/
|
||||
ValidateEmailAddress.cpp
|
||||
|
|
|
@ -65,13 +65,15 @@ bool CValidateEmailAddress::Validate(wxWindow *parent) {
|
|||
wxString val(control->GetValue().Trim().Trim(false)); // trim spaces before and after
|
||||
|
||||
// Regular Expression found here:
|
||||
// http://www.regexlib.com/REDetails.aspx?regexp_id=284
|
||||
// http://www.regexlib.com/REDetails.aspx?regexp_id=328
|
||||
wxRegEx reEmail(
|
||||
wxT("^([a-zA-Z0-9_\\-])+(\\.([a-zA-Z0-9_\\-])+)*@((\\[(((([0-1])?([0-9])?[0-9])|"
|
||||
"(2[0-4][0-9])|(2[0-5][0-5])))\\.(((([0-1])?([0-9])?[0-9])|(2[0-4][0-9])|(2["
|
||||
"0-5][0-5])))\\.(((([0-1])?([0-9])?[0-9])|(2[0-4][0-9])|(2[0-5][0-5])))\\.(("
|
||||
"(([0-1])?([0-9])?[0-9])|(2[0-4][0-9])|(2[0-5][0-5]))\\]))|((([a-zA-Z0-9])+("
|
||||
"([\\-])+([a-zA-Z0-9])+)*\\.)+([a-zA-Z])+(([\\-])+([a-zA-Z0-9])+)*))$"));
|
||||
wxT("^((\\\"[^\\\"\\f\\n\\r\\t\\v\\b]+\\\")|([\\w\\!\\#\\$\\%\\&\\'\\*\\+\\-\\~\\/\\^\\`\\|\\{\\"
|
||||
"}]+(\\.[\\w\\!\\#\\$\\%\\&\\'\\*\\+\\-\\~\\/\\^\\`\\|\\{\\}]+)*))@((\\[(((25[0-5])|(2[0-4]["
|
||||
"0-9])|([0-1]?[0-9]?[0-9]))\\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\\.((25[0-5])|(2["
|
||||
"0-4][0-9])|([0-1]?[0-9]?[0-9]))\\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9])))\\])|(((25["
|
||||
"0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\\."
|
||||
"((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]"
|
||||
")))|((([A-Za-z0-9\\-])+\\.)+[A-Za-z\\-]+))$"));
|
||||
|
||||
if (val.Length() == 0) {
|
||||
ok = FALSE;
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue