summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-01-28 14:46:01 +0100
committerGitHub <noreply@github.com>2019-01-28 14:46:01 +0100
commitb5b8a17222b33bcbfe677cf68a511f688dbd09dc (patch)
tree77c5af4539f317c5c80f71033153b398c8745362 /apps
parent8d52a3ac4a9f13c7ff7197b80ba055f37ac575d3 (diff)
parent5742ec79ab28d618e54fece89f8659a4f574eee8 (diff)
downloadnextcloud-server-b5b8a17222b33bcbfe677cf68a511f688dbd09dc.tar.gz
nextcloud-server-b5b8a17222b33bcbfe677cf68a511f688dbd09dc.zip
Merge pull request #13675 from imsolost/master
Fixed some LGTM alerts
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/filelist.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 29c5a49131d..7ba650eb183 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -1674,7 +1674,7 @@
c: fileData.etag
};
var previewUrl = this.generatePreviewUrl(urlSpec);
- previewUrl = previewUrl.replace('(', '%28').replace(')', '%29');
+ previewUrl = previewUrl.replace(/\(/g, '%28').replace(/\)/g, '%29');
iconDiv.css('background-image', 'url("' + previewUrl + '")');
}
}
@@ -2058,8 +2058,7 @@
}
previewURL = self.generatePreviewUrl(urlSpec);
- previewURL = previewURL.replace('(', '%28');
- previewURL = previewURL.replace(')', '%29');
+ previewURL = previewURL.replace(/\(/g, '%28').replace(/\)/g, '%29');
// preload image to prevent delay
// this will make the browser cache the image