aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-theme.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-12-10 00:19:38 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-12-10 00:19:38 +0800
commit015167fb0beb6a2893e6524129b22ec133210ad5 (patch)
tree30d1e88c6797dcdfe65f1896ba4d524c7251e55c /libempathy-gtk/empathy-theme.c
parent7fb190b1f6692525a3556d3e470cf9fd6318c06f (diff)
downloadgsoc2013-empathy-015167fb0beb6a2893e6524129b22ec133210ad5.tar
gsoc2013-empathy-015167fb0beb6a2893e6524129b22ec133210ad5.tar.gz
gsoc2013-empathy-015167fb0beb6a2893e6524129b22ec133210ad5.tar.bz2
gsoc2013-empathy-015167fb0beb6a2893e6524129b22ec133210ad5.tar.lz
gsoc2013-empathy-015167fb0beb6a2893e6524129b22ec133210ad5.tar.xz
gsoc2013-empathy-015167fb0beb6a2893e6524129b22ec133210ad5.tar.zst
gsoc2013-empathy-015167fb0beb6a2893e6524129b22ec133210ad5.zip
Match literal dot rather than any char in email domain
This fixes half of #563713: previously, "foo@bar baz" was matched as an email address. svn path=/trunk/; revision=1954
Diffstat (limited to 'libempathy-gtk/empathy-theme.c')
-rw-r--r--libempathy-gtk/empathy-theme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-theme.c b/libempathy-gtk/empathy-theme.c
index d68b72f02..1e0e9895d 100644
--- a/libempathy-gtk/empathy-theme.c
+++ b/libempathy-gtk/empathy-theme.c
@@ -39,7 +39,7 @@
#define SEPARATOR "([^,;\?><()\\ ])"
#define BODY "([^\\ ]*(\\\\ )?)+"
#define URI_REGEX "("SHEMES"://"BODY SEPARATOR")" \
- "|((mailto:)?"BODY"@"BODY"."BODY SEPARATOR")"\
+ "|((mailto:)?"BODY"@"BODY"\\."BODY SEPARATOR")"\
"|((www|ftp)."BODY SEPARATOR")"
static GRegex *uri_regex = NULL;