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 8c385b6 Also decode attachment names
8c385b6 is described below
commit 8c385b6bc651b3e2de4fbd69be7d538f9a58f988
Author: Sebb <[email protected]>
AuthorDate: Sun Oct 21 12:45:55 2018 +0100
Also decode attachment names
Follow-up to a89e57b
---
www/secretary/workbench/server.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/www/secretary/workbench/server.rb
b/www/secretary/workbench/server.rb
index 2e1cfda..01d154a 100644
--- a/www/secretary/workbench/server.rb
+++ b/www/secretary/workbench/server.rb
@@ -188,7 +188,7 @@ get %r{/(\d{6})/(\w+)/_danger_/(.*?)} do |month, hash, name|
message = Mailbox.new(month).find(hash)
pass unless message
- @part = message.find(name)
+ @part = message.find(URI.decode(name))
pass unless @part
_html :danger