From 31d042a90eda5ee761676b87cae068a17d7f0b98 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sun, 5 Jan 2020 16:58:01 +0800 Subject: [PATCH] Update functions.php --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index fee0970..b09c8be 100644 --- a/functions.php +++ b/functions.php @@ -374,7 +374,7 @@ function ConfigWriteable() function RewriteEngineOn() { $http_type = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) ? 'https://' : 'http://'; - $tmpurl=$http_type . $_SERVER['SERVER_NAME'] . '/config.php'; //.$_SERVER["REQUEST_URI"]; + $tmpurl=$http_type . path_format($_SERVER['SERVER_NAME'] . $_SERVER['base_path'] . '/config.php'); $tmp = curl_request($tmpurl); if ($tmp['stat']==201) return true; //when install return 201, after installed return 404 or 200; return false;