From e5a0b7504fbea141a3b5723d759e5238541eace9 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Fri, 12 Apr 2019 23:31:20 +0200 Subject: Support decoding interwiki URL encoding MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- projects.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'projects.rb') diff --git a/projects.rb b/projects.rb index 69a2857..e5a9eaf 100755 --- a/projects.rb +++ b/projects.rb @@ -64,7 +64,7 @@ projects_q.execute(graph) do |result| project['email'] = email result[:proj_email].to_s project['description'] = result[:proj_desc].to_s project['irc'] = result[:proj_irc].to_s - project['href'] = URI.decode(https(result[:proj_href].to_s)) + project['href'] = URI.decode(https(result[:proj_href].to_s).gsub('-', '%')) project['propagates_members'] = result[:propagates_members].to_s == 'true' parent_id = label_to_id result[:parent_title].to_s -- cgit v1.2.3-65-gdbad