Browse Source

Detect mailto: inside <a> and <img> tags.

tags/0.3.7
Vsevolod Stakhov 13 years ago
parent
commit
cbc577df0e
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/html.c

+ 2
- 1
src/html.c View File

@@ -783,7 +783,8 @@ parse_tag_url (struct worker_task *task, struct mime_text_part *part, tag_id_t i

if (g_ascii_strncasecmp (url_text, "http://", sizeof ("http://") - 1) != 0 &&
g_ascii_strncasecmp (url_text, "www", sizeof ("www") - 1) != 0 &&
g_ascii_strncasecmp (url_text, "ftp://", sizeof ("ftp://") - 1) != 0) {
g_ascii_strncasecmp (url_text, "ftp://", sizeof ("ftp://") - 1) != 0 &&
g_ascii_strncasecmp (url_text, "mailto:", sizeof ("mailto:") - 1) != 0) {
return;
}


Loading…
Cancel
Save