fix the null byte replace
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -26,7 +26,7 @@ var (
|
|||||||
">", "\\>",
|
">", "\\>",
|
||||||
";", "\\;",
|
";", "\\;",
|
||||||
"=", "\\=",
|
"=", "\\=",
|
||||||
"\000", "\\\000",
|
"\000", "\\00",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,6 @@ var _ = Describe("ldap", func() {
|
|||||||
Entry("only one space", " ", "\\ "),
|
Entry("only one space", " ", "\\ "),
|
||||||
Entry("two spaces", " ", "\\ \\ "),
|
Entry("two spaces", " ", "\\ \\ "),
|
||||||
Entry("ending with space", "foobar ", "foobar\\ "),
|
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