From 5d6039f6bf9bbbfec572055dcf5ca660041461af Mon Sep 17 00:00:00 2001 From: Maximilian Krambach Date: Thu, 30 Aug 2018 15:37:37 +0200 Subject: [PATCH] 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. --- lang/js/src/Helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {