summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
Diffstat (limited to 'render')
-rw-r--r--render/box.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/render/box.c b/render/box.c
index 24a565f4e..11fa0b07e 100644
--- a/render/box.c
+++ b/render/box.c
@@ -736,6 +736,9 @@ 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);
+
url = url_join(s, status->content->data.html.base_url);
if (!url)
return (struct result) {box, 0};