fix bug: guest upload folder with no ext file
parent
146ce057f2
commit
1b4be18301
|
@ -852,6 +852,7 @@
|
|||
<!--GuestStart-->
|
||||
function getext(str) {
|
||||
strarry=str.split('.');
|
||||
if (strarry.length==1) return '';
|
||||
ext=strarry[strarry.length-1].toLowerCase();
|
||||
var reg = new RegExp(".","g");
|
||||
var a = str.replace(reg,"");
|
||||
|
|
Loading…
Reference in New Issue