* src/modest-text-utils.c:
Fixed invalid jump due to incorrect string/pointer
operation.
(See https://projects.maemo.org/trac/email/wiki/ValgrindErrors
for details)
pmo-trunk-r2934
+2007-08-04 Johannes Schmid <johannes.schmid@openismus.com>
+
+ * src/modest-text-utils.c:
+ Fixed invalid jump due to incorrect string/pointer
+ operation.
+ (See https://projects.maemo.org/trac/email/wiki/ValgrindErrors
+ for details)
+
2007-08-01 Murray Cumming <murrayc@murrayc.com>
* src/modest-account-mgr-helpers.h:
if (invalid_char_position != NULL)
*invalid_char_position = NULL;
-
+
+ /* check that the email adress contains exactly one @ */
+ if (!strstr(email_address, "@") ||
+ (strstr(email_address, "@") != g_strrstr(email_address, "@")))
+ {
+ return FALSE;
+ }
+
/* first we validate the name portion (name@domain) */
for (c = email_address; *c; c++) {
if (*c == '\"' &&