fix bug: guest upload folder with no ext file

pull/135/head
qkqpttgf 2020-10-19 14:19:31 +08:00 committed by GitHub
parent 146ce057f2
commit 1b4be18301
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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,"");