aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libserver/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/url.c b/src/libserver/url.c
index a52011346..2bab0ca4f 100644
--- a/src/libserver/url.c
+++ b/src/libserver/url.c
@@ -1384,7 +1384,7 @@ url_email_end (const gchar *begin,
}
/* Strip strange symbols at the end */
- if (got_at) {
+ if (got_at && p < end) {
while (p >= match->m_begin &&
(!is_domain (*p) || *p == '.' || *p == '_')) {
p --;