tadd tel: as link reference, only mailto: and tel: may be used in <a> - webdump - [FORK] git://git.codemadness.org/webdump
 (HTM) git clone git://git.z3bra.org/webdump.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 41c9468ad0eecb17decb3417d3cd60d3be70bace
 (DIR) parent dc6abb72ba42569b71ac27b79ca69f29263a01c2
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Fri, 29 Nov 2019 15:25:16 +0100
       
       add tel: as link reference, only mailto: and tel: may be used in <a>
       
       Diffstat:
         M webdump.c                           |      10 +++++++---
       
       1 file changed, 7 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/webdump.c b/webdump.c
       t@@ -691,9 +691,13 @@ xmltagstartparsed(XMLParser *p, const char *t, size_t tl, int isshort)
                /* show links as reference at the bottom */
                if (showlinkrefs && src[0]) {
                        absurl[0] = '\0';
       -                if (!strncmp(src, "mailto:", sizeof("mailto:") - 1))
       -                        strlcpy(absurl, src, sizeof(absurl));
       -                else if (absuri(absurl, sizeof(absurl), src, basehref) == -1)
       +                if (!strcasecmp(t, "a")) {
       +                        if (!strncmp(src, "mailto:", sizeof("mailto:") - 1))
       +                                strlcpy(absurl, src, sizeof(absurl));
       +                        else if (!strncmp(src, "tel:", sizeof("tel:") - 1))
       +                                strlcpy(absurl, src, sizeof(absurl));
       +                }
       +                if (!absurl[0] && absuri(absurl, sizeof(absurl), src, basehref) == -1)
                                absurl[0] = '\0';
                        if (absurl[0]) {
                                if (!links_head)