This is an automated email from the ASF dual-hosted git repository.
sebbASF pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new e0069715 Only useful for ASF pages
e0069715 is described below
commit e0069715c91f80f502ca27b919eb1a6a2dfb47ef
Author: Sebb <[email protected]>
AuthorDate: Tue Aug 11 17:21:38 2026 +0100
Only useful for ASF pages
---
tools/download_check.rb | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/tools/download_check.rb b/tools/download_check.rb
index e767a0c0..c9c33012 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -797,10 +797,14 @@ def doPost(options)
$ARCHIVE_CHECK = options[:archivecheck]
init
url = options[:url]
- tlp = options[:tlp]
- tlp = getTLP(url) if tlp == ''
- if tlp
- checkDownloadPage(url, tlp, options[:version])
+ if url =~ %r{\Ahttps://[\w.]+\.apache\.org/\S+\z}
+ tlp = options[:tlp]
+ tlp = getTLP(url) if tlp == ''
+ if tlp
+ checkDownloadPage(url, tlp, options[:version])
+ end
+ else
+ F "Invalid URL: #{url}"
end
displayHTML
end