From 0056a904140a3a9f3d55946e9ba8aa4989f6dc16 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 26 Jan 2018 13:49:16 +0100 Subject: [PATCH] SyncUtils: allow property names ending with a dot --- library/Director/Import/SyncUtils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Director/Import/SyncUtils.php b/library/Director/Import/SyncUtils.php index c54fee61..39c23a22 100644 --- a/library/Director/Import/SyncUtils.php +++ b/library/Director/Import/SyncUtils.php @@ -130,7 +130,7 @@ class SyncUtils { $res = array(); foreach ($vars as $p) { - if (false === ($pos = strpos($p, '.'))) { + if (false === ($pos = strpos($p, '.')) || $pos === strlen($p) - 1) { $res[] = $p; } else { $res[] = substr($p, 0, $pos);