Skip to content

Commit 5cf2ac4

Browse files
committed
Fix escape quotes for DOT format #1603
1 parent 71173da commit 5cf2ac4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/streams/dot.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,5 +171,6 @@ func (c *conn) label() string {
171171
if c.UserAgent != "" {
172172
sb.WriteString("\nuser_agent=" + c.UserAgent)
173173
}
174-
return sb.String()
174+
// escape quotes https://github.com/AlexxIT/go2rtc/issues/1603
175+
return strings.ReplaceAll(sb.String(), `"`, `'`)
175176
}

0 commit comments

Comments
 (0)