Patch for concurrent iterator & others (onto v1.11.6) #386
@ -492,8 +492,8 @@ func escapeString(s string) string {
|
|||||||
func escapeMessage(s string) string {
|
func escapeMessage(s string) string {
|
||||||
needsQuoting := false
|
needsQuoting := false
|
||||||
for _, r := range s {
|
for _, r := range s {
|
||||||
// Carriage return and Line feed are ok
|
// Allow CR/LF/TAB. This is to make multi-line messages work.
|
||||||
if r == 0xa || r == 0xd {
|
if r == '\r' || r == '\n' || r == '\t' {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
// We quote everything below <space> (0x20) and above~ (0x7E),
|
// We quote everything below <space> (0x20) and above~ (0x7E),
|
||||||
|
Loading…
Reference in New Issue
Block a user