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