From 26edd874df0014ad92aa73a699b4595e47400a08 Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Mon, 29 Apr 2024 16:39:43 +0400 Subject: [PATCH] =?UTF-8?q?support=20de=20t=C3=A9l=C3=A9phone=20avec=20lab?= =?UTF-8?q?el?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nur_src/ldap/labels.php | 23 +++++++++++++++++++++++ nur_src/ldap/syntaxes/TelephoneSyntax.php | 9 +++++++-- 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 nur_src/ldap/labels.php diff --git a/nur_src/ldap/labels.php b/nur_src/ldap/labels.php new file mode 100644 index 0000000..6518ee3 --- /dev/null +++ b/nur_src/ldap/labels.php @@ -0,0 +1,23 @@ +type; - return $type->ensureInternational($type->with($value)); + $value = $type->ensureInternational($type->with($value)); + return labels::add($value, $label); } function ldap2php(string $value): string { - return $this->type->ensureLocal($value); + labels::strip($value, $label); + $value = $this->type->ensureLocal($value); + return labels::add($value, $label); } }