mirror of
https://github.com/curl/curl.git
synced 2026-06-09 15:44:16 +03:00
mdlinkcheck: percent-encode urls before passing to curl fixup
This commit is contained in:
parent
99e0893a96
commit
30303935b0
1 changed files with 1 additions and 1 deletions
|
|
@ -132,8 +132,8 @@ sub checkurl {
|
|||
}
|
||||
|
||||
print "check $url\n";
|
||||
$url =~ s/([^A-Za-z0-9_.~-])/sprintf("%%%02X", ord($1))/ge;
|
||||
my $curlcmd="curl -ILfsm10 --retry 2 --retry-delay 5 -A \"Mozilla/curl.se link-probe\"";
|
||||
$url =~ s/\+/%2B/g;
|
||||
my @content = `$curlcmd \"$url\"`;
|
||||
if(!$content[0]) {
|
||||
print STDERR "FAIL\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue