From fa103746e33487670262e3f10e621f9eb6a089f5 Mon Sep 17 00:00:00 2001 From: hawkcraw <561641083@qq.com> Date: Fri, 10 Mar 2017 17:58:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9window=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit windows环境运行提示403 Forbidden --- index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/index.php b/index.php index 5b01547..fb5544c 100644 --- a/index.php +++ b/index.php @@ -38,6 +38,7 @@ if($PASSWORD) { setlocale(LC_ALL,'en_US.UTF-8'); $tmp_dir = dirname($_SERVER['SCRIPT_FILENAME']); +if(DIRECTORY_SEPARATOR==='\\') $tmp_dir = str_replace('/',DIRECTORY_SEPARATOR,$tmp_dir); $tmp = get_absolute_path($tmp_dir . '/' .$_REQUEST['file']); if($tmp === false)