From db95d5eec823facacf8b8567a1785fbf842bcd9e Mon Sep 17 00:00:00 2001 From: chaideqing Date: Wed, 8 Nov 2023 07:45:46 +0000 Subject: [PATCH] * Merge commit: 54593e4a42. --- module/extension/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/extension/model.php b/module/extension/model.php index 8970e9f75d..25c009f9ee 100644 --- a/module/extension/model.php +++ b/module/extension/model.php @@ -459,7 +459,7 @@ class extensionModel extends model else { $parentDir = mb_substr($path, 0, strripos($path, '/')); - if(!is_writable($parentDir)) + if(is_dir($parentDir) and !is_writable($parentDir)) { $checkResult->errors .= sprintf($this->lang->extension->errorTargetPathNotWritable, $path) . '
'; $checkResult->chmodCommands .= "sudo chmod -R 777 $path
";