summaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
authorMichael Gapczynski <GapczynskiM@gmail.com>2011-08-28 15:39:17 -0400
committerMichael Gapczynski <GapczynskiM@gmail.com>2011-08-28 15:39:17 -0400
commitbe4cb5536846049ffdc1093adf6649cbe13903fa (patch)
tree91972cfba84d6149b1e9a484514104e461cc56a8 /files
parentaffc879cde972aca84688f47bca15e66ea5f7505 (diff)
downloadnextcloud-server-be4cb5536846049ffdc1093adf6649cbe13903fa.tar.gz
nextcloud-server-be4cb5536846049ffdc1093adf6649cbe13903fa.zip
Fix newly uploaded files names being cut off if multiple '.'
Diffstat (limited to 'files')
-rw-r--r--files/js/filelist.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/js/filelist.js b/files/js/filelist.js
index a5b8854e929..ae9e7977c95 100644
--- a/files/js/filelist.js
+++ b/files/js/filelist.js
@@ -6,7 +6,7 @@ FileList={
var img=(loading)?OC.imagePath('core', 'loading.gif'):OC.imagePath('core', 'filetypes/file');
var html='<tr data-file="'+name+'" data-type="file" data-size="'+size+'">';
if(name.indexOf('.')!=-1){
- var basename=name.substr(0,name.indexOf('.'));
+ var basename=name.substr(0,name.lastIndexOf('.'));
var extention=name.substr(name.lastIndexOf('.'));
}else{
var basename=name;