diff options
author | Maximilian Krambach <[email protected]> | 2018-08-30 13:37:37 +0000 |
---|---|---|
committer | Maximilian Krambach <[email protected]> | 2018-08-30 13:37:37 +0000 |
commit | 5d6039f6bf9bbbfec572055dcf5ca660041461af (patch) | |
tree | b979ff47dbaa1bb45911ecec758faf4d41b4a541 /lang/js | |
parent | js: add tests (diff) | |
download | gpgme-5d6039f6bf9bbbfec572055dcf5ca660041461af.tar.gz gpgme-5d6039f6bf9bbbfec572055dcf5ca660041461af.zip |
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.
Diffstat (limited to 'lang/js')
-rw-r--r-- | lang/js/src/Helpers.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/js/src/Helpers.js b/lang/js/src/Helpers.js index aa267f69..952c09fc 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) { |