mirror of
https://github.com/curl/curl.git
synced 2026-08-24 13:03:35 +03:00
mdlinkcheck: percent-encode urls before passing to curl
Fixing: ``` check https://codepoints.net/U+00DF FAIL docs/URL-SYNTAX.md:199 ERROR links to missing URL https://codepoints.net/U+00DF ```
This commit is contained in:
parent
28c6272fa0
commit
99e0893a96
1 changed files with 1 additions and 0 deletions
|
|
@ -132,6 +132,7 @@ 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\"";
|
||||
my @content = `$curlcmd \"$url\"`;
|
||||
if(!$content[0]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue