Mercurial > pidgin
changeset 18607:c46515956e2e
merge of '504a8cb6756b655e5d3fa457826b95b2c177ce61'
and '8db13002b7de5128438d3b3daaf6cfe364b6e0da'
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Sun, 22 Jul 2007 08:14:22 +0000 |
parents | 5610c2ea0d94 (current diff) ac9f19a31051 (diff) |
children | 56886bde4535 |
files | pidgin/gtkconv.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/util.c Sun Jul 22 08:14:16 2007 +0000 +++ b/libpurple/util.c Sun Jul 22 08:14:22 2007 +0000 @@ -3994,6 +3994,10 @@ if (*c <= ' ' || *c >= 127) return FALSE; if (strchr(rfc822_specials, *c)) return FALSE; } + + /* It's obviously not an email address if we didn't find an '@' above */ + if (*c == '\0') return FALSE; + /* strictly we should return false if (*(c - 1) == '.') too, but I think * we should permit user.@domain type addresses - they do work :) */ if (c == address) return FALSE;