From a227dccbb8f697c0892b76857a8fd960d4e435a8 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Thu, 3 Jun 2021 08:49:57 +0800 Subject: [PATCH] Fix PHP setup script --- web/public_php/setup/header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/public_php/setup/header.php b/web/public_php/setup/header.php index cefc30a01..11d64213a 100644 --- a/web/public_php/setup/header.php +++ b/web/public_php/setup/header.php @@ -33,7 +33,7 @@ function printalert($type, $message) { print ''; } function is__writable($path) { - if ($path{strlen($path) - 1} == '/') { + if ($path[strlen($path) - 1] == '/' || $path[strlen($path) - 1] == '\\') { return is__writable($path.uniqid(mt_rand()).'.tmp'); }