forked from perl-pod/pod-simple
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instead of HTTP-only man.he.net Avoiding "Not secure" warnings thereby Fixes perl-pod#150
- Loading branch information
Showing
4 changed files
with
10 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,8 +35,8 @@ $Perldoc_URL_Postfix = '' | |
unless defined $Perldoc_URL_Postfix; | ||
|
||
|
||
our $Man_URL_Prefix = 'http://man.he.net/man'; | ||
our $Man_URL_Postfix = ''; | ||
our $Man_URL_Prefix = 'https://man7.org/linux/man-pages'; | ||
our $Man_URL_Postfix = '.html'; | ||
|
||
our $Title_Prefix; | ||
$Title_Prefix = '' unless defined $Title_Prefix; | ||
|
@@ -797,7 +797,7 @@ sub resolve_man_page_link { | |
$section ||= 1; | ||
|
||
return $self->man_url_prefix . "$section/" | ||
. $self->manpage_url_escape($page) | ||
. $self->manpage_url_escape($page) . ".$section" | ||
. $self->man_url_postfix; | ||
} | ||
|
||
|
@@ -1136,11 +1136,6 @@ This program is distributed in the hope that it will be useful, but | |
without any warranty; without even the implied warranty of | ||
merchantability or fitness for a particular purpose. | ||
=head1 ACKNOWLEDGEMENTS | ||
Thanks to L<Hurricane Electric|http://he.net/> for permission to use its | ||
L<Linux man pages online|http://man.he.net/> site for man page links. | ||
=head1 AUTHOR | ||
Pod::Simple was created by Sean M. Burke <[email protected]>. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,7 +131,7 @@ default. | |
In turning C<< L<crontab(5)> >> into http://whatever/man/1/crontab, what | ||
to put before the "1/crontab". The default value is | ||
"http://man.he.net/man". | ||
"https://man7.org/linux/man-pages". | ||
=head2 man_url_postfix | ||
|
@@ -276,7 +276,7 @@ sub new { | |
my $new = $self->SUPER::new(@_); | ||
$new->{'output_fh'} ||= *STDOUT{IO}; | ||
$new->perldoc_url_prefix('https://metacpan.org/pod/'); | ||
$new->man_url_prefix('http://man.he.net/man'); | ||
$new->man_url_prefix('https://man7.org/linux/man-pages'); | ||
$new->html_charset('ISO-8859-1'); | ||
$new->nix_X_codes(1); | ||
$new->{'scratch'} = ''; | ||
|
@@ -774,12 +774,12 @@ sub resolve_pod_page_link { | |
Resolves a man page link target and numeric section to a URL. The resulting | ||
link will be returned for the above examples as: | ||
http://man.he.net/man5/crontab | ||
http://man.he.net/man1/crontab | ||
https://man7.org/linux/man-pages/man5/crontab.5.html | ||
https://man7.org/linux/man-pages/man1/crontab.1.html | ||
Note that the first argument is required. The section number will be parsed | ||
from it, and if it's missing will default to 1. The second argument is | ||
currently ignored, as L<man.he.net|http://man.he.net> does not currently | ||
currently ignored, as L<man7.org|https://man7.org/linux/man-pages> does not currently | ||
include linkable IDs or anchor names in its pages. Subclass to link to a | ||
different man page HTTP server. | ||
|
@@ -905,11 +905,6 @@ This program is distributed in the hope that it will be useful, but | |
without any warranty; without even the implied warranty of | ||
merchantability or fitness for a particular purpose. | ||
=head1 ACKNOWLEDGEMENTS | ||
Thanks to L<Hurricane Electric|http://he.net/> for permission to use its | ||
L<Linux man pages online|http://man.he.net/> site for man page links. | ||
=head1 AUTHOR | ||
Pod::Simple::XHTML was created by Allison Randal <[email protected]>. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters