From 1adeb198af546c482f1e9fd55ea91e289b6f3189 Mon Sep 17 00:00:00 2001 From: Sparkle Date: Sun, 26 Feb 2023 22:34:04 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E8=87=AA=E9=80=82=E5=BA=94http=E4=B8=8Ehtt?= =?UTF-8?q?ps=EF=BC=8C=E5=AF=86=E7=A0=81=E5=8A=A0=E5=AF=86=E4=BC=A0?= =?UTF-8?q?=E8=BE=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template.html | 42 ++++++++++++++++++++++++------------------ 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/template.html b/template.html index b6cf4de..67b3fab 100644 --- a/template.html +++ b/template.html @@ -5,10 +5,10 @@ - - - - + + + + OdIndex - /{[Path]} @@ -27,9 +27,9 @@ - - - + + + + @@ -170,7 +170,7 @@ - + @@ -188,9 +188,15 @@

此预览需要前往Office

- - - + + + + + OdIndex - /{[Path]} @@ -204,12 +210,12 @@

此预览需要前往Office

输入密码以继续

-
- + +
-{{PasswordPageEnd}} \ No newline at end of file +{{PasswordPageEnd}} From 5cea4004b8e754abdb306ebe3929e3dff691153b Mon Sep 17 00:00:00 2001 From: Sparkle Date: Sun, 26 Feb 2023 22:34:54 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=A5=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=E5=89=8D=E7=AB=AF=E5=8A=A0=E5=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 5292224..98855ce 100644 --- a/index.php +++ b/index.php @@ -472,7 +472,7 @@ function pwdChallenge() foreach ($pwdCfg as $line) { $singleConfig = explode(' ', $line); $targetFolder = $singleConfig[0];/*获得每行配置的目标目录*/ - $targetPwd = trim($singleConfig[1]);/*获得每行目录对应的md5密码*/ + $targetPwd = md5(trim($singleConfig[1]));/*获得每行目录对应的md5密码*/ if (empty($targetFolder)) continue;/*如果配置目录为空就跳过,防止匹配bug*/ if (stripos($currentPath, $targetFolder) === 0) {/*当前目录能匹配上目标目录,受密码保护*/ $folderMd5 = md5($targetFolder);/*得到目标foldermd5*/ @@ -803,7 +803,7 @@ function queueChecker($statu, $waiting = false, $id = false) $pwdRqFolder = @$_POST['requestfolder']; $passwd = @$_POST['password']; if (!empty($pwdRqFolder)) { - $_SESSION['passwd'][$pwdRqFolder] = md5($passwd);/*提交并储存密码*/ + $_SESSION['passwd'][$pwdRqFolder] = $passwd;/*提交并储存密码*/ } @session_write_close(); /*Password Receiver End*/ From 87406f21113500e65e33551ecdaeda507eb94c7a Mon Sep 17 00:00:00 2001 From: Sparkle Date: Sun, 26 Feb 2023 22:39:26 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E8=87=AA=E9=80=82=E5=BA=94http=E4=B8=8Ehtt?= =?UTF-8?q?ps=EF=BC=8C=E5=AF=86=E7=A0=81=E5=8A=A0=E5=AF=86=E4=BC=A0?= =?UTF-8?q?=E8=BE=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template.html b/template.html index 67b3fab..a292ce6 100644 --- a/template.html +++ b/template.html @@ -191,7 +191,7 @@

此预览需要前往Office

- +