summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/otp_html_check2
1 files changed, 1 insertions, 1 deletions
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 ".."