From 375fa49035cf422f6847ca16e74946a3569268e0 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Tue, 27 Oct 2020 19:45:28 +0800 Subject: [PATCH] fix bug: passfile use non-english --- common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.php b/common.php index 337dcb6..88e4afe 100644 --- a/common.php +++ b/common.php @@ -1143,7 +1143,7 @@ function adminoperate($path) if (getConfig('passfile')=='') return message(getconstStr('SetpassfileBfEncrypt'),'',403); if ($_GET['encrypt_folder']=='/') $_GET['encrypt_folder']==''; $foldername = spurlencode($_GET['encrypt_folder']); - $filename = path_format($path1 . '/' . $foldername . '/' . getConfig('passfile')); + $filename = path_format($path1 . '/' . $foldername . '/' . urlencode(getConfig('passfile'))); //echo $foldername; $result = MSAPI('PUT', $filename, $_GET['encrypt_newpass'], $_SERVER['access_token']); $path1 = path_format($path1 . '/' . $foldername );