From 1b4be183017606a4fc7490c329e29b96a7661691 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Mon, 19 Oct 2020 14:19:31 +0800 Subject: [PATCH] fix bug: guest upload folder with no ext file --- theme/classic.html | 1 + 1 file changed, 1 insertion(+) diff --git a/theme/classic.html b/theme/classic.html index 2c8686e..897a7d3 100644 --- a/theme/classic.html +++ b/theme/classic.html @@ -852,6 +852,7 @@ 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,"");