From 00a27bfff4c279cac36ce6b6ea052451924d5928 Mon Sep 17 00:00:00 2001 From: David Christofas Date: Wed, 6 Jul 2022 17:11:18 +0200 Subject: [PATCH] fix the null byte replace --- ocis-pkg/ldap/ldap.go | 2 +- ocis-pkg/ldap/ldap_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ocis-pkg/ldap/ldap.go b/ocis-pkg/ldap/ldap.go index 9276c4709..cfa452f1a 100644 --- a/ocis-pkg/ldap/ldap.go +++ b/ocis-pkg/ldap/ldap.go @@ -26,7 +26,7 @@ var ( ">", "\\>", ";", "\\;", "=", "\\=", - "\000", "\\\000", + "\000", "\\00", ) ) diff --git a/ocis-pkg/ldap/ldap_test.go b/ocis-pkg/ldap/ldap_test.go index 6925facb7..d3ee3152c 100644 --- a/ocis-pkg/ldap/ldap_test.go +++ b/ocis-pkg/ldap/ldap_test.go @@ -20,6 +20,6 @@ var _ = Describe("ldap", func() { Entry("only one space", " ", "\\ "), Entry("two spaces", " ", "\\ \\ "), Entry("ending with space", "foobar ", "foobar\\ "), - Entry("containing multiple special chars", `f+o>o,bo\,b\o,bo\,b\