]> Sergey Matveev's repositories - tofuproxy.git/commitdiff
Some realms contain quotes
authorSergey Matveev <stargrave@stargrave.org>
Fri, 15 Jul 2022 06:37:16 +0000 (09:37 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 15 Jul 2022 06:37:16 +0000 (09:37 +0300)
httpauth.go

index d62d0fc91674b0542e5f849cda733fe1905f315b..ca708b010fac06a8ab5340bd31d5f964e58cf483 100644 (file)
@@ -59,7 +59,7 @@ bind . <KeyPress> {switch -exact %%K {
     q {exit 0} ; # reject once
     l login
 }}
-`, realm, userInit, passInit))
+`, strings.ReplaceAll(realm, "\"", ""), userInit, passInit))
        cmd := exec.Command(ttls.CmdWish)
        cmd.Stdin = &b
        out, err := cmd.Output()