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

by Maximilian Krambach cvs at cvs.gnupg.org
Thu Aug 30 15:38:52 CEST 2018


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 <maximilian.krambach at intevation.de>
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




More information about the Gnupg-commits mailing list