[git] GPGME - branch, master, updated. gpgme-1.11.1-263-g5d6039f

[email protected] (by Maximilian Krambach)
Newsgroups gmane.comp.encryption.gpg.cvs
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GnuPG Made Easy".

The branch, master has been updated
       via  5d6039f6bf9bbbfec572055dcf5ca660041461af (commit)
      from  3201ded91f91fcdf501ad966380b6ff29d798b09 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5d6039f6bf9bbbfec572055dcf5ca660041461af
Author: Maximilian Krambach <[email protected]>
Date:   Thu Aug 30 15:37:37 2018 +0200

    js: decoding of information
    
    --
    
    * src/Helpers.js: This additional escape should 'repair' special
      characters like spaces in filenames. In the strange world of
      encoding there is little hope that this captures all cases, or
      that it will never fail to return some value, let alone meaningful.
      In my test cases it worked.

diff --git a/lang/js/src/Helpers.js b/lang/js/src/Helpers.js
index aa267f6..952c09f 100644
--- a/lang/js/src/Helpers.js
+++ b/lang/js/src/Helpers.js
@@ -116,7 +116,7 @@ export function isLongId (value){
 export function decode (property){
     if (typeof property === 'string'){
         try {
-            return decodeURIComponent(escape(property));
+            return decodeURIComponent(escape(unescape(property)));
         }
         catch (error){
             if (error instanceof URIError) {

-----------------------------------------------------------------------

Summary of changes:
 lang/js/src/Helpers.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
GnuPG Made Easy
http://git.gnupg.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.