# HG changeset patch # User Mark Doliner # Date 1185088173 0 # Node ID ac9f19a3105170d0e46940fee6b62ec21c2b0ae8 # Parent 5733c0691c254cb62fa7de63a76cb8e35592a5be# Parent 321658bf0e03cd2100e206de17a0c0b4c3addf7f merge of 'ee06baadf86c44d4707c364c06c874bd9b27ad07' and 'ff1016b75717a37c96fb6e4d7e388259022043de' diff -r 5733c0691c25 -r ac9f19a31051 libpurple/util.c --- a/libpurple/util.c Sun Jul 22 07:02:28 2007 +0000 +++ b/libpurple/util.c Sun Jul 22 07:09:33 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;