X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fhtml-url.c;h=dd59f18df0aedb6ced483dea046addb29d41412d;hp=0441b470c2891c95a86b4709330aca6cf88bf38d;hb=6e598c81e36a23ae6c0651fab303a129de68522c;hpb=fb42069e5170f9f2e3d3fafc5ee84fdb1cf66eb2 diff --git a/src/html-url.c b/src/html-url.c index 0441b470..dd59f18d 100644 --- a/src/html-url.c +++ b/src/html-url.c @@ -348,12 +348,11 @@ handle_link (struct collect_urls_closure *closure, const char *link_uri, newel->size = tag->attrs[attrid].value_raw_size; /* A URL is relative if the host and protocol are not named, and the - name does not start with `/'. - #### This logic might need some rethinking. */ + name does not start with `/'. */ if (no_proto && *link_uri != '/') - newel->flags |= (URELATIVE | UNOPROTO); - else if (no_proto) - newel->flags |= UNOPROTO; + newel->link_relative_p = 1; + else if (!no_proto) + newel->link_complete_p = 1; if (closure->tail) {