[Bedework-commit] webapps r354 - trunk/webcommon/src/org/bedework/webcommon/event

svnadmin at bedework.org svnadmin at bedework.org
Tue Apr 10 23:34:09 EDT 2007


Author: douglm
Date: 2007-04-10 23:34:08 -0400 (Tue, 10 Apr 2007)
New Revision: 354

Modified:
   trunk/webcommon/src/org/bedework/webcommon/event/AttendeeAction.java
Log:
Allow use of email addresses for attendees

Modified: trunk/webcommon/src/org/bedework/webcommon/event/AttendeeAction.java
===================================================================
--- trunk/webcommon/src/org/bedework/webcommon/event/AttendeeAction.java	2007-04-10 01:42:58 UTC (rev 353)
+++ trunk/webcommon/src/org/bedework/webcommon/event/AttendeeAction.java	2007-04-11 03:34:08 UTC (rev 354)
@@ -80,15 +80,17 @@
     /* check for something that looks like mailto:somebody at somewhere.com,
        scheduleto:, etc.  If exists, is not an internal Bedework account. */
     int colonPos = uri.indexOf(":");
+    int atPos = uri.indexOf("@");
+
     if (colonPos > 0) {
-      int atPos = uri.indexOf("@");
-
       if (atPos < colonPos) {
         form.getErr().emit(ValidationError.invalidUser, uri);
         return forwardNoAction;
       }
 
       isAccount = false;
+    } else if (atPos > 0) {
+      uri = "mailto:" + uri;
     }
 
     if (!BwWebUtil.validateUserHref(svc, uri)) {



More information about the Bedework-commit mailing list