diff options
author | James Bursa <james@netsurf-browser.org> | 2004-03-02 18:02:41 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2004-03-02 18:02:41 +0000 |
commit | 1c85bf04293cfba663c5170bbe762825b7e72af1 (patch) | |
tree | 6db0b94b8e875ae20514b334c9f9acb3b380f362 /render/html.c | |
parent | 2d816dda237a80f413a9d90031c7f5aff01e7a83 (diff) | |
download | netsurf-1c85bf04293cfba663c5170bbe762825b7e72af1.tar.gz netsurf-1c85bf04293cfba663c5170bbe762825b7e72af1.tar.bz2 |
[project @ 2004-03-02 18:02:17 by bursa]
Add new url functions and modify to use them.
svn path=/import/netsurf/; revision=578
Diffstat (limited to 'render/html.c')
-rw-r--r-- | render/html.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/render/html.c b/render/html.c index 2eccc78d7..d1c2cafa3 100644 --- a/render/html.c +++ b/render/html.c @@ -22,9 +22,10 @@ #endif #include "netsurf/render/html.h" #include "netsurf/render/layout.h" -#include "netsurf/utils/utils.h" -#include "netsurf/utils/messages.h" #include "netsurf/utils/log.h" +#include "netsurf/utils/messages.h" +#include "netsurf/utils/url.h" +#include "netsurf/utils/utils.h" #define CHUNK 4096 @@ -220,7 +221,7 @@ void html_head(struct content *c, xmlNode *head) } else if (strcmp(node->name, "base") == 0) { char *href = (char *) xmlGetProp(node, (const xmlChar *) "href"); if (href) { - char *url = url_join(href, 0); + char *url = url_normalize(href); if (url) { free(c->data.html.base_url); c->data.html.base_url = url; |