From 8a3a04b5f917ab0ee7d636b92058f9879a7189c3 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 5 Oct 2015 16:37:10 +0200 Subject: [PATCH] LegacyStorage: allow weird operator combinations This allows for "a = b & c & d &" (Neteye writes such config) and for future extensions like "a = ! b" --- library/Businessprocess/Storage/LegacyStorage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Businessprocess/Storage/LegacyStorage.php b/library/Businessprocess/Storage/LegacyStorage.php index 2fd7d45..c37019d 100644 --- a/library/Businessprocess/Storage/LegacyStorage.php +++ b/library/Businessprocess/Storage/LegacyStorage.php @@ -249,7 +249,7 @@ class LegacyStorage extends Storage $op_name = $m[1]; $value = $m[2]; } - $cmps = preg_split('~\s*\\' . $op . '\s*~', $value); + $cmps = preg_split('~\s*\\' . $op . '\s*~', $value, -1, PREG_SPLIT_NO_EMPTY); foreach ($cmps as & $val) { if (strpos($val, ';') !== false) {