mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
fix preview issue when uploading a file with parentheses
This commit is contained in:
parent
58c727a495
commit
46cbd7cd3b
1 changed files with 3 additions and 1 deletions
|
|
@ -843,7 +843,9 @@ function lazyLoadPreview(path, mime, ready) {
|
|||
var y = $('#filestable').data('preview-y');
|
||||
var previewURL = OC.Router.generate('core_ajax_preview', {file: encodeURIComponent(path), x:x, y:y});
|
||||
$.get(previewURL, function() {
|
||||
ready(previewURL);
|
||||
previewURL = previewURL.replace('(','%28');
|
||||
previewURL = previewURL.replace(')','%29');
|
||||
ready(previewURL + '&reload=true');
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue