"(/[0-9a-z_=./+&%?-]*)?"
"(?=\r?\n|[^0-9a-z_=./+&%?-])";
static pcre *text_url_re;
-static const char *html_url_pattern = "<(a href|img src)=\"https?://[^\"]+(?=\")";
+static const char *html_url_pattern = "<(a ([^>]*\\s)?href|img ([^>]*\\s)?src)=\"https?://[^\"]+(?=\")";
static pcre *html_url_re;
static void
if (re_stream_result(sr) == 1) {
char *s, *url = re_stream_getresult(sr);
if (m->mp_mod->mpm_type == MSGPROC_HTML)
- if ((s = strchr(url, '"')))
+ if ((s = strrchr(url, '"')))
url = s + 1;
if (m->callback) {
m->callback(m, url, m->call_data);