]> Kevux Git Server - rit/commit
sideband: introduce an "escape hatch" to allow control characters
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 5 Mar 2026 23:34:47 +0000 (15:34 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 6 Mar 2026 21:52:28 +0000 (13:52 -0800)
commit9ed1625a581a35d7ec2d851258cf4c7fc08c1ed7
tree7dbe0029c9bda10ecbb1a902aaa1315d45b1f2c7
parent04949538203ba7aeb298a607280715d4f26dbe0a
sideband: introduce an "escape hatch" to allow control characters

The preceding commit fixed the vulnerability whereas sideband messages
(that are under the control of the remote server) could contain ANSI
escape sequences that would be sent to the terminal verbatim.

However, this fix may not be desirable under all circumstances, e.g.
when remote servers deliberately add coloring to their messages to
increase their urgency.

To help with those use cases, give users a way to opt-out of the
protections: `sideband.allowControlCharacters`.

Suggested-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.adoc
Documentation/config/sideband.adoc [new file with mode: 0644]
sideband.c
t/t5409-colorize-remote-messages.sh