From d1a8285f818eb7e5c3d6a05709ea21a808490b8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Mon, 19 Mar 2018 19:55:58 +0100 Subject: New upstream version 5.1.0 --- app/tools/halibut/bk_html.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/tools/halibut/bk_html.c') 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; -- cgit v1.2.3