You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@whimsical.apache.org by Craig Russell <ap...@gmail.com> on 2019/03/29 14:11:14 UTC
Re: [whimsy] branch master updated: decode % encoded data (like
spaces) in attachment names
A one-liner! Thanks so much Sam!
Craig
> On Mar 29, 2019, at 6:03 AM, rubys@apache.org wrote:
>
> 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 <ru...@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
>
Craig L Russell
Secretary, Apache Software Foundation
clr@apache.org <ma...@apache.org> http://db.apache.org/jdo <http://db.apache.org/jdo>