diff options
author | Indrajith K L | 2019-12-31 11:01:39 +0530 |
---|---|---|
committer | Indrajith K L | 2019-12-31 11:01:39 +0530 |
commit | 3c6aabc168da12eacdd944176f0b8e54e842b145 (patch) | |
tree | 75808227ade838ad2348b72d79290e59e6e08484 /src | |
parent | 4ca8ee85e0eb72e0e198a507644f7c04f39466d3 (diff) | |
download | KopyPlugin-3c6aabc168da12eacdd944176f0b8e54e842b145.tar.gz KopyPlugin-3c6aabc168da12eacdd944176f0b8e54e842b145.tar.bz2 KopyPlugin-3c6aabc168da12eacdd944176f0b8e54e842b145.zip |
* Fixes malformed data while loading encrypted content
Diffstat (limited to 'src')
-rw-r--r-- | src/extension.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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"; |