projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5558b39
)
* src/modest-text-utils.c:
author
Jose Dapena Paz
<jdapena@igalia.com>
Wed, 1 Aug 2007 18:01:10 +0000
(18:01 +0000)
committer
Jose Dapena Paz
<jdapena@igalia.com>
Wed, 1 Aug 2007 18:01:10 +0000
(18:01 +0000)
* (modest_text_utils_validate_email_address): a domain part
that finishes with a dot (for example "a@b.") is not valid
(fixes NB#63204).
pmo-trunk-r2899
src/modest-text-utils.c
patch
|
blob
|
history
diff --git
a/src/modest-text-utils.c
b/src/modest-text-utils.c
index
f01e706
..
3c63385
100644
(file)
--- a/
src/modest-text-utils.c
+++ b/
src/modest-text-utils.c
@@
-1145,7
+1145,7
@@
modest_text_utils_validate_email_address (const gchar *email_address, const gcha
return FALSE;
do {
if (*c == '.') {
return FALSE;
do {
if (*c == '.') {
- if (c == domain || *(c - 1) == '.')
+ if (c == domain || *(c - 1) == '.' || *(c + 1) == '\0')
return FALSE;
count++;
}
return FALSE;
count++;
}