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 284e4efa Alloe for more special chars 284e4efa is described below commit 284e4efac417fde8866233299fd6e02574adaa3a Author: Sebb <sebb...@users.noreply.github.com> AuthorDate: Fri Apr 26 09:12:23 2024 +0100 Alloe for more special chars --- tools/site-scan.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/site-scan.rb b/tools/site-scan.rb index 3790ee23..3657a26c 100755 --- a/tools/site-scan.rb +++ b/tools/site-scan.rb @@ -161,9 +161,9 @@ def parse(id, site, name, podling=false) unless a_href =~ %r{^(#|mailto:)} begin if a_href =~ %r{^https?://} # no need to rebase this - site2 = URI.parse(a_href) # needs to be a URI + site2 = URI.parse(a_href.gsub(' ','%20').gsub('|', '%7C')) # needs to be a URI else - site2 = URI.join(site,a_href.gsub(' ','%20')) # HACK + site2 = URI.join(site,a_href.gsub(' ','%20').gsub('|', '%7C') # HACK end if site2.host == uri.host and site2.path.size > 2 subpages[site2.to_s] = a