Merge pull request #408 from owncloud/encode-amp

encodeURIComponent on dirname
pull/1/head
VicDeo 10 years ago
commit 4b391af043

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

Loading…
Cancel
Save