From c069d48a2a690b333c0733328f3574ae8a76e435 Mon Sep 17 00:00:00 2001 From: Arlen22 Date: Sat, 16 Sep 2017 10:30:13 -0400 Subject: [PATCH] Remove URI encoding from PUT saver (#2974) Remove URI encoding from PUT saver and let the browser handle it as necessary. This seems to be the normal way of doing things. We have confirmed that several WebDAV servers do not expect the file names to be double-encoded. --- core/modules/savers/put.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/savers/put.js b/core/modules/savers/put.js index 0882af2f6..8ba4ebc96 100644 --- a/core/modules/savers/put.js +++ b/core/modules/savers/put.js @@ -47,7 +47,7 @@ var PutSaver = function(wiki) { }; PutSaver.prototype.uri = function() { - return encodeURI(document.location.toString().split("#")[0]); + return document.location.toString().split("#")[0]; }; // TODO: in case of edit conflict