From 94b4c1bd2b290d5bef120af9a90381871a183569 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Wed, 21 May 2025 14:07:52 +0900 Subject: [PATCH] Fix error when Validator tries to load a directory --- classes/validator/Validator.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/validator/Validator.class.php b/classes/validator/Validator.class.php index bd6d5c17f..b8f563648 100644 --- a/classes/validator/Validator.class.php +++ b/classes/validator/Validator.class.php @@ -105,7 +105,7 @@ class Validator */ function load($xml_path) { - if (!file_exists($xml_path) || !is_readable($xml_path)) + if (!file_exists($xml_path) || !is_file($xml_path) || !is_readable($xml_path)) { return false; }