From 548dc97317baae1acf6deaa5f9b879209db69551 Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Fri, 17 Apr 2020 17:00:05 +0200 Subject: docs: In link check trip everything after ? --- scripts/otp_html_check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/otp_html_check b/scripts/otp_html_check index 23805b5789..62d5b47edd 100755 --- a/scripts/otp_html_check +++ b/scripts/otp_html_check @@ -277,7 +277,6 @@ sub normalize_link { } return $link if $link =~ /^\w{3,10}:/i; # mailto: http: ..... - return $link if $link =~ /\?/i; # Contains arguments to CGI $link =~ s/%([\da-fA-F]{2})/chr(hex($1))/eg; # Translate hex to char @@ -328,6 +327,7 @@ sub normalize_link { $link =~ s&(/\.)+$&&; # Remove ending slash dot "/." $link =~ s&(/\.)+/&/&g; # Remove all slash dot slash "/./" $link =~ s&/+$&&; # Remove ending slashes + $link =~ s&\?.*$&&; # Remove any query parameters # Remove a real directory part followed by ".." -- cgit v1.2.1