*** empty log message ***

svn path=/trunk/boinc/; revision=11311
This commit is contained in:
Rom Walton 2006-10-18 23:59:23 +00:00
parent 5dee5e8cde
commit 0ee4dda4f3
3 changed files with 15 additions and 6 deletions

View File

@ -11193,3 +11193,10 @@ David 18 Oct 2006
clientgui/ clientgui/
ViewResources.cpp,h 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

View File

@ -65,13 +65,15 @@ bool CValidateEmailAddress::Validate(wxWindow *parent) {
wxString val(control->GetValue().Trim().Trim(false)); // trim spaces before and after wxString val(control->GetValue().Trim().Trim(false)); // trim spaces before and after
// Regular Expression found here: // Regular Expression found here:
// http://www.regexlib.com/REDetails.aspx?regexp_id=284 // http://www.regexlib.com/REDetails.aspx?regexp_id=328
wxRegEx reEmail( wxRegEx reEmail(
wxT("^([a-zA-Z0-9_\\-])+(\\.([a-zA-Z0-9_\\-])+)*@((\\[(((([0-1])?([0-9])?[0-9])|" wxT("^((\\\"[^\\\"\\f\\n\\r\\t\\v\\b]+\\\")|([\\w\\!\\#\\$\\%\\&\\'\\*\\+\\-\\~\\/\\^\\`\\|\\{\\"
"(2[0-4][0-9])|(2[0-5][0-5])))\\.(((([0-1])?([0-9])?[0-9])|(2[0-4][0-9])|(2[" "}]+(\\.[\\w\\!\\#\\$\\%\\&\\'\\*\\+\\-\\~\\/\\^\\`\\|\\{\\}]+)*))@((\\[(((25[0-5])|(2[0-4]["
"0-5][0-5])))\\.(((([0-1])?([0-9])?[0-9])|(2[0-4][0-9])|(2[0-5][0-5])))\\.((" "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-1])?([0-9])?[0-9])|(2[0-4][0-9])|(2[0-5][0-5]))\\]))|((([a-zA-Z0-9])+(" "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["
"([\\-])+([a-zA-Z0-9])+)*\\.)+([a-zA-Z])+(([\\-])+([a-zA-Z0-9])+)*))$")); "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) { if (val.Length() == 0) {
ok = FALSE; ok = FALSE;

Binary file not shown.