From 3c6aabc168da12eacdd944176f0b8e54e842b145 Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Tue, 31 Dec 2019 11:01:39 +0530 Subject: * Fixes malformed data while loading encrypted content --- src/extension.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension.ts b/src/extension.ts index f9855af..20afe34 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -34,7 +34,7 @@ export function activate(context: vscode.ExtensionContext) { axios({ method: 'post', url: 'http://kopy.io/documents', - data: `data=${encodeURI(encryptedData)}&keep=${supportedTimes.one_hr}&language=-1&&security=encrypted&font=Source+Code+Pro&font-size=auto&line-spacing=-1&wrapping=Disabled` + data: `data=${encodeURIComponent(encryptedData)}&keep=${supportedTimes.one_hr}&language=-1&&security=encrypted&font=Source+Code+Pro&font-size=auto&line-spacing=-1&wrapping=Disabled` }).then((response) => { if(response.status===200){ let openUrl = "Open Url"; -- cgit v1.2.3