This is an automated email from the ASF dual-hosted git repository.

sebb 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 0a18369a Allow for javascript hrefs
0a18369a is described below

commit 0a18369aa09aa97a8b51fb1a27b84f07f6681baa
Author: Sebb <[email protected]>
AuthorDate: Tue Feb 10 11:29:24 2026 +0000

    Allow for javascript hrefs
---
 tools/site-scan.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/site-scan.rb b/tools/site-scan.rb
index 7701f7f5..499ccd32 100755
--- a/tools/site-scan.rb
+++ b/tools/site-scan.rb
@@ -199,7 +199,9 @@ def parse(id, site, name, podling=false)
         subpages[site2.to_s] = a
       end
     rescue StandardError => e
-      report_error data, id, a_href, "@#{__LINE__}: #{id}: Bad a_href 
#{a_href} #{e}"
+      unless a_href.start_with? 'javascript:' # Not parsed currently
+        report_error data, id, a_href, "@#{__LINE__}: #{id}: Bad a_href 
#{a_href} #{e}"
+      end
     end
   end
 

Reply via email to