summaryrefslogtreecommitdiff
path: root/app/tools/halibut
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2018-03-19 19:55:58 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2018-03-19 19:55:58 +0100
commitd1a8285f818eb7e5c3d6a05709ea21a808490b8c (patch)
tree326578f0505cbed07cfe60de530022822dc237ac /app/tools/halibut
parent16e9630b79f0a7a90c6cedb6781175bb8b337dc1 (diff)
New upstream version 5.1.0upstream/5.1.0
Diffstat (limited to 'app/tools/halibut')
-rw-r--r--app/tools/halibut/bk_html.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/tools/halibut/bk_html.c b/app/tools/halibut/bk_html.c
index 4f7c49b..b01d035 100644
--- a/app/tools/halibut/bk_html.c
+++ b/app/tools/halibut/bk_html.c
@@ -2222,6 +2222,8 @@ static void html_words(htmloutput *ho, word *words, int flags,
element_open(ho, "a");
c = utoa_dup(w->text, CS_ASCII);
element_attr(ho, "href", c);
+ if(!strncmp(c, "http://", strlen("http://")) || !strncmp(c, "https://", strlen("https://")))
+ element_attr(ho, "target", "_blank");
sfree(c);
}
break;