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'); }