[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [websocket/master] escape doesn't remove '\\'.



commit e0fedd184f513e31fd4faec966ee00e5fceeabae
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Sat Oct 26 15:20:05 2013 -0700

    escape doesn't remove '\\'.
    
    It uses '\\' to escape other dangerous characters.
---
 src/pt/pt.go |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pt/pt.go b/src/pt/pt.go
index 6b40098..59543a4 100644
--- a/src/pt/pt.go
+++ b/src/pt/pt.go
@@ -64,7 +64,7 @@ func getenvRequired(key string) string {
 }
 
 // Escape a string so it contains no byte values over 127 and doesn't contain
-// any of the characters '\x00', '\n', or '\\'.
+// any of the characters '\x00' or '\n'.
 func escape(s string) string {
 	var buf bytes.Buffer
 	for _, b := range []byte(s) {



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits