From 6252899428e56ea18c637f61233bffd15ad2fb61 Mon Sep 17 00:00:00 2001 From: Madpwnhammer Date: Fri, 30 Jun 2023 13:15:29 +0300 Subject: [PATCH] Fix flt_class, return wrong val --- filters.inc.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/filters.inc.php b/filters.inc.php index 87e580b..b83739c 100644 --- a/filters.inc.php +++ b/filters.inc.php @@ -79,10 +79,12 @@ function flt_class($val, $name, $struct, $args) if(is_string($val)) { - if(strpos($val, '@') === 0) - $val = substr($val, 1) . '.conf.js'; + $conf_path = $val; + + if(strpos($conf_path, '@') === 0) + $conf_path = substr($conf_path, 1) . '.conf.js'; - $conf_path = \taskman\config_real_path($val); + $conf_path = \taskman\config_real_path($conf_path); $lines = file($conf_path); foreach($lines as $line)