whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: decode % encoded data (like spaces) in attachment names
Date Fri, 29 Mar 2019 13:03:39 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys 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 e7fee58  decode % encoded data (like spaces) in attachment names
e7fee58 is described below

commit e7fee58a24473b8cfea574af500bd86524f75342
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Fri Mar 29 09:03:06 2019 -0400

    decode % encoded data (like spaces) in attachment names
---
 www/secretary/workbench/views/forms/memapp.js.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/secretary/workbench/views/forms/memapp.js.rb b/www/secretary/workbench/views/forms/memapp.js.rb
index 7f4022c..4dc2409 100644
--- a/www/secretary/workbench/views/forms/memapp.js.rb
+++ b/www/secretary/workbench/views/forms/memapp.js.rb
@@ -108,7 +108,7 @@ class MemApp < Vue
     # wire up form
     jQuery('form')[0].addEventListener('submit', self.file)
     jQuery('input[name=message]').val(window.parent.location.pathname)
-    jQuery('input[name=selected]').val(@@selected)
+    jQuery('input[name=selected]').val(decodeURIComponent(@@selected))
 
     # default email
     @email = @@headers.from


Mime
View raw message