-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
w3mman2html.cgi does not convert https to links #292
Comments
In addition to http|ftp do also convert https links to proper links with a href statement. Fixes: tats#292 Signed-off-by: Christian Ehrhardt <[email protected]>
I've been using a very similar fix locally, and don't see why your patch wouldn't work :) FWIW, another way I tried to fix this was to run |
On Tue, Jan 30, 2024 at 12:31:08AM -0800, Christian Ehrhardt wrote:
```
diff -Naur /usr/lib/w3m/cgi-bin/w3mman2html.cgi.orig /usr/lib/w3m/cgi-bin/w3mman2html.cgi.new
--- /usr/lib/w3m/cgi-bin/w3mman2html.cgi.orig 2024-01-30 08:08:50.278360949 +0000
+++ /usr/lib/w3m/cgi-bin/w3mman2html.cgi.new 2024-01-30 08:15:19.521156596 +0000
@@ -162,7 +162,7 @@
next;
}
- s@(http|ftp)://[\w.\-/~]+[\w/]@<a ***@***.***;
+ s@(https|http|ftp)://[\w.\-/~]+[\w/]@<a ***@***.***;
s@\b(mailto:|)(\w[\w.\-]*\@\w[\w.\-]*\.[\w.\-]*\w)@<a ***@***.***;
s@(\W)(\~?/[\w.][\w.\-/~]*)@$1 . ***@***.***;
s@(include(<\/?[bu]\>|\s)*\<)([\w.\-/]+)@$1 . ***@***.***;
```
As this is Perl, using (https?|ftp) should work.
|
Hi,
via a bug report on man page visualization I've realized that
w3mman2html.cgi
does not convert https to proper href links.Reproducing the issue
You can see that the http link was converted to a proper link, while the https link was not changed.
I do not know if there is more to it as it seems to trivial and I feel I overlook something, but isn't that just this line:
In my test I found this to work well
I'll file this trivial change as a PR, but I can't get rid of the feeling that I'll be told why we can't make that change :-)
The text was updated successfully, but these errors were encountered: