From b58b64c77b8cc5beb38e21ecf86bb1396d240a85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?b=CA=B0edoh=E2=82=82=20sw=C3=A9?= Date: Wed, 15 Jan 2025 04:09:01 +0500 Subject: [PATCH] Better sanitizing. --- dobroho_vechora.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dobroho_vechora.bash b/dobroho_vechora.bash index bcacd97..d39b768 100755 --- a/dobroho_vechora.bash +++ b/dobroho_vechora.bash @@ -92,7 +92,7 @@ decrypt() { print_messages() { open_socket echo -n 2 >&3 - head -c "${1}" <&3 | decrypt | sed -e 's/\x1B/ESC/g' -e 's/\x0D/RET/g' -e 's/\x08/BAC/g' + head -c "${1}" <&3 | decrypt | sed -e 's/\x1B/ESC/g' -e 's/\x0D/RET/g' -e 's/\x08/BAC/g' -e 's/\x0C/FF/g' -e 's/\x0B/VT/g' -e 's/\x07/BEL/g' close_socket }