From d65d78fc07dce574158db3b9329da013474c34df Mon Sep 17 00:00:00 2001 From: bergware Date: Wed, 15 Apr 2020 20:57:49 +0200 Subject: [PATCH] Multi cache pool support --- plugins/dynamix/include/Dispatcher.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/dynamix/include/Dispatcher.php b/plugins/dynamix/include/Dispatcher.php index 0e89e01fa..53b1af76a 100644 --- a/plugins/dynamix/include/Dispatcher.php +++ b/plugins/dynamix/include/Dispatcher.php @@ -14,10 +14,11 @@ $keys = parse_ini_file($_POST['#cfg'], true); $cleanup = isset($_POST['#cleanup']); $text = ""; - foreach ($_POST as $field => $value) { if ($field[0] == '#') continue; - list($section,$key) = explode('_', $field, 2); + $n = strrpos($field,'_'); + $section = substr($field,0,$n); + $key = substr($field,$n+1); $keys[$section][$key] = $value; } foreach ($keys as $section => $block) {