diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-07-05 14:16:32 +0300 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-07-05 17:39:39 +0300 |
commit | 43efbcff74d1bced3d24742d9879804e34007365 (patch) | |
tree | 89006ae71fc13321eab3462ab640c04b389612f3 /apps/files | |
parent | 93aa618e803022677303cc7894b72dfe18530735 (diff) |
Fix 404 when using index.php in the url
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
(cherry picked from commit ee793572cb9acc9d688b1ff191a59e8699af9da1)
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/js/files.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 6aa871d99c0..e02a69cd13a 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -25,7 +25,9 @@ state.call.abort(); } state.dir = currentDir; - state.call = $.getJSON(OC.filePath('files','ajax','getstoragestats') + '?dir=' + encodeURIComponent(currentDir),function(response) { + state.call = $.getJSON(OC.generateUrl('apps/files/ajax/getstoragestats', { + dir: currentDir, + }), function(response) { state.dir = null; state.call = null; Files.updateMaxUploadFilesize(response); @@ -37,7 +39,7 @@ }, _updateStorageQuotas: function() { var state = Files.updateStorageQuotas; - state.call = $.getJSON(OC.filePath('files','ajax','getstoragestats'),function(response) { + state.call = $.getJSON(OC.generateUrl('apps/files/ajax/getstoragestats'), function(response) { Files.updateQuota(response); }); }, |