[gthumb] [picasaweb] use the whole email as user id



commit 474046f7c8cee8cb17ff22c07719ffcd14cb5b88
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Nov 7 09:06:53 2010 +0100

    [picasaweb] use the whole email as user id
    
    don't remove the part after the @ sign to get the user id.
    
    [bug #634052]

 extensions/picasaweb/google-connection.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)
---
diff --git a/extensions/picasaweb/google-connection.c b/extensions/picasaweb/google-connection.c
index 280cd24..1648257 100644
--- a/extensions/picasaweb/google-connection.c
+++ b/extensions/picasaweb/google-connection.c
@@ -403,16 +403,5 @@ google_connection_get_challange_url (GoogleConnection *self)
 char *
 google_utils_get_user_id_from_email (const char *email)
 {
-	char *user_id = NULL;
-
-	if (email != NULL) {
-		char *at_sign = strchr (email, '@');
-		if (at_sign != NULL)
-			user_id = g_strndup (email, at_sign - email);
-	}
-
-	if (user_id == NULL)
-		user_id = g_strdup ("default");
-
-	return user_id;
+	return g_strdup ((email != NULL) ? email : "default");
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]