From 92c32b005d7f52a707abd689dcf2922f7330b8b8 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sat, 24 Jan 2004 17:12:32 +0000 Subject: [project @ 2004-01-24 17:12:32 by bursa] Fix removing URL leading and trailing whitespace. svn path=/import/netsurf/; revision=501 --- render/box.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/render/box.c b/render/box.c index 63747004b..5f9262e0c 100644 --- a/render/box.c +++ b/render/box.c @@ -724,7 +724,7 @@ struct result box_image(xmlNode *n, struct status *status, struct css_style *style) { struct box *box; - char *s, *url; + char *s, *url, *s1; xmlChar *s2; box = box_create(style, status->href, status->title, @@ -742,10 +742,10 @@ struct result box_image(xmlNode *n, struct status *status, if (!(s = (char *) xmlGetProp(n, (const xmlChar *) "src"))) return (struct result) {box, 0}; - /* remove leading and trailing whitespace */ - s = strip(s); + /* remove leading and trailing whitespace */ + s1 = strip(s); - url = url_join(s, status->content->data.html.base_url); + url = url_join(s1, status->content->data.html.base_url); if (!url) return (struct result) {box, 0}; -- cgit v1.2.3