From 1a9b128c09c90d5a9249741b4922a4a815b8968a Mon Sep 17 00:00:00 2001 From: k0walski <2618150-k0walski@users.noreply.gitlab.com> Date: Mon, 3 Nov 2025 15:25:10 +0200 Subject: [PATCH] Add missing closing braces to ldap_timestamp pattern match condition --- inc/drivers_ldap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/drivers_ldap.php b/inc/drivers_ldap.php index c3203fef..bdf2686b 100644 --- a/inc/drivers_ldap.php +++ b/inc/drivers_ldap.php @@ -887,7 +887,7 @@ function sync_LDAP(){ $$k = substr($ldap_timestamp,$v[0],$v[1]); $ldap_timestamp = $Y.$m.$d.$H.$M.$S; } - else if ( preg_match('{^(\d{8})(\d{6})(Z)?$', $ldap_timestamp, $matches ) ) { + else if ( preg_match('{^(\d{8})(\d{6})(Z)?$}', $ldap_timestamp, $matches ) ) { $ldap_timestamp = $matches[1].'T'.$matches[2].$matches[3]; } else if ( empty($ldap_timestamp) ) {