From 0ee4dda4f30bb3963deb5a1d088b27aae5ced48a Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Wed, 18 Oct 2006 23:59:23 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=11311 --- checkin_notes | 7 +++++++ clientgui/ValidateEmailAddress.cpp | 14 ++++++++------ win_build/installerv2/BOINC.ism | Bin 206336 -> 206336 bytes 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/checkin_notes b/checkin_notes index 19a2a57369..c2ec9e60a4 100755 --- a/checkin_notes +++ b/checkin_notes @@ -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 diff --git a/clientgui/ValidateEmailAddress.cpp b/clientgui/ValidateEmailAddress.cpp index e83054848b..c17de04f1a 100644 --- a/clientgui/ValidateEmailAddress.cpp +++ b/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; diff --git a/win_build/installerv2/BOINC.ism b/win_build/installerv2/BOINC.ism index 3c9b74d0a19574857f24ba0a4a0d913fa656aa66..a56280d5738777ab876583a4ae281c46a20586da 100644 GIT binary patch delta 767 zcmZ`#TS!z<6rH`#bsjc%)X6d$XHrK)3M@^7q|67SGZy1uqFI5IU35Ta)Krwj=C21t z-A5k$s{EQ4C`pRCWX-d?cjQ(P?*n6$L&f0JybJob5b+SVc zm!i*4S-wqyYA_fg>Y(t;24m{r&g;p7)Zuos?z8Bi&+b(#E>2=O#gu1DO5+4k;oK}- zYYle|_5|D7d#maK&Go+F!lCV<#@lcy91OJJ>kAC_5JzyF3OuFrH2#ByCpi*Z>3A! z>1tO0RfjU7m>`9!$p$p+)4S;}oCZ)okEfX_?~{}m-w}H(Q2t0#6z+)4 z>*Fhl`U6F3(L&G>`=s-a67{awRNKmJhin6ZaS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