From 02521629b341ab30d38c844947a2ae3a1dd4a0f2 Mon Sep 17 00:00:00 2001 From: Christian Ehrhardt Date: Tue, 30 Jan 2024 09:32:12 +0100 Subject: [PATCH] w3mman2html.cgi: convert https to href links In addition to http|ftp do also convert https links to proper links with a href statement. Fixes: #292 Signed-off-by: Christian Ehrhardt --- scripts/w3mman/w3mman2html.cgi.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/w3mman/w3mman2html.cgi.in b/scripts/w3mman/w3mman2html.cgi.in index 59af785aa..59f6e97f0 100644 --- a/scripts/w3mman/w3mman2html.cgi.in +++ b/scripts/w3mman/w3mman2html.cgi.in @@ -162,7 +162,7 @@ EOF next; } - s@(http|ftp)://[\w.\-/~]+[\w/]@$&@g; + s@(https|http|ftp)://[\w.\-/~]+[\w/]@$&@g; s@\b(mailto:|)(\w[\w.\-]*\@\w[\w.\-]*\.[\w.\-]*\w)@$1$2@g; s@(\W)(\~?/[\w.][\w.\-/~]*)@$1 . &file_ref($2)@ge; s@(include(<\/?[bu]\>|\s)*\<)([\w.\-/]+)@$1 . &include_ref($3)@ge;