mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-31 01:10:20 -06:00
fix the null byte replace
This commit is contained in:
@@ -26,7 +26,7 @@ var (
|
||||
">", "\\>",
|
||||
";", "\\;",
|
||||
"=", "\\=",
|
||||
"\000", "\\\000",
|
||||
"\000", "\\00",
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -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,b<a;r="\00"`, `f\+o\>o\,b\<a\;r\=\\"\\00\\"`),
|
||||
Entry("containing multiple special chars", "f+o>o,b<a;r=\"\000", `f\+o\>o\,b\<a\;r\=\\"\00`),
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user