Encode token in viewer

pull/1/head
Victor Dubiniuk 9 years ago
parent 87f6996ce0
commit 608eccac55

@ -63,7 +63,7 @@ var odfViewer = {
//Public page, files app, etc
var dirName = $('#dir').val()!='/' ? $('#dir').val() + '/' : '/';
var location = OC.filePath('documents', 'ajax', 'download.php') + '?path=' + encodeURIComponent(dirName) + encodeURIComponent(filename)
+ '&requesttoken=' + oc_requesttoken;
+ '&requesttoken=' + encodeURIComponent(oc_requesttoken);
OC.addStyle('documents', '3rdparty/webodf/editor');
}

Loading…
Cancel
Save