whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: atttachment name comes from a URL
Date Sun, 21 Oct 2018 17:32:16 GMT
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 50687a2  atttachment name comes from a URL
50687a2 is described below

commit 50687a207f2d4cd4610dee67add545478344f171
Author: Sebb <sebb@apache.org>
AuthorDate: Sun Oct 21 18:32:02 2018 +0100

    atttachment name comes from a URL
---
 www/secretary/workbench/views/actions/check-signature.json.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/secretary/workbench/views/actions/check-signature.json.rb b/www/secretary/workbench/views/actions/check-signature.json.rb
index 010de36..35a0ed6 100644
--- a/www/secretary/workbench/views/actions/check-signature.json.rb
+++ b/www/secretary/workbench/views/actions/check-signature.json.rb
@@ -8,8 +8,8 @@ message = Mailbox.find(@message)
 
 begin
   # fetch attachment and signature
-  attachment = message.find(@attachment).as_file
-  signature  = message.find(@signature).as_file
+  attachment = message.find(URI.decode(@attachment)).as_file # This is derived from a URI
+  signature  = message.find(@signature).as_file # This is derived from the YAML file
 
   # pick the latest gpg version
   gpg = `which gpg2`.chomp


Mime
View raw message