From 9dacdf59b1db3f38aed0018a0ee6caec5cdfc0d3 Mon Sep 17 00:00:00 2001 From: Lorenzo Yario Date: Mon, 16 Dec 2024 23:15:23 -0600 Subject: [PATCH] skip captcha or log settings in mod.php config relates to multidimensional arrays --- inc/mod/config-editor.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inc/mod/config-editor.php b/inc/mod/config-editor.php index 0f6dbc9a..688b0910 100644 --- a/inc/mod/config-editor.php +++ b/inc/mod/config-editor.php @@ -64,6 +64,10 @@ function config_vars() { $var['comment'][] = $temp_comment; $temp_comment = false; } + + if (preg_match('!^\s*\$config\[(\'log_system\'|\'captcha\')\]!', $line)) { + continue; + } if (preg_match('!^\s*// ([^$].*)$!', $line, $matches)) { if ($var['default'] !== false) {