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

dcf at torproject.org dcf at torproject.org
Sat Oct 26 22:26:04 UTC 2013


commit e0fedd184f513e31fd4faec966ee00e5fceeabae
Author: David Fifield <david at bamsoftware.com>
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) {





More information about the tor-commits mailing list