You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2020/07/19 20:58:58 UTC

[whimsy] branch master updated: These are URLs and need decoding

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 0488a5f  These are URLs and need decoding
0488a5f is described below

commit 0488a5fc59dc9ac973dfbdd3a97f57f2ca97053d
Author: Sebb <se...@apache.org>
AuthorDate: Sun Jul 19 21:58:49 2020 +0100

    These are URLs and need decoding
---
 www/secretary/workbench/views/check-signature.js.rb | 2 +-
 www/secretary/workbench/views/parts.js.rb           | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/www/secretary/workbench/views/check-signature.js.rb b/www/secretary/workbench/views/check-signature.js.rb
index 0aba657..162c1a1 100644
--- a/www/secretary/workbench/views/check-signature.js.rb
+++ b/www/secretary/workbench/views/check-signature.js.rb
@@ -15,7 +15,7 @@ class CheckSignature < Vue
   end
 
   def mounted()
-    @signature = CheckSignature.find(@@selected, @@attachments)
+    @signature = CheckSignature.find(decodeURIComponent(@@selected), @@attachments)
 
     if @signature and @signature != @checked
       @flag = 'alert-info'
diff --git a/www/secretary/workbench/views/parts.js.rb b/www/secretary/workbench/views/parts.js.rb
index 99d30f1..c4c68dc 100644
--- a/www/secretary/workbench/views/parts.js.rb
+++ b/www/secretary/workbench/views/parts.js.rb
@@ -35,7 +35,7 @@ class Parts < Vue
     }
 
     # locate corresponding signature file (if any)
-    signature = CheckSignature.find(@selected, @attachments)
+    signature = CheckSignature.find(decodeURIComponent(@selected), @attachments)
 
     # list of attachments
     _ul.attachments! @attachments, ref: 'attachments' do |attachment|
@@ -393,7 +393,7 @@ class Parts < Vue
     HTTP.post('../../actions/delete-attachment', data).then {|response|
       @attachments = response.attachments
       if event.type == 'message'
-        signature = CheckSignature.find(@selected, response.attachments)
+        signature = CheckSignature.find(decodeURIComponent(@selected), response.attachments)
         @busy = false
         @selected = signature
         self.delete_attachment(event) if signature