From 33e96e6bdcbbe1952cc365f9c4794d720b6f1418 Mon Sep 17 00:00:00 2001 From: Konstantin Grachev Date: Sat, 23 Jan 2021 02:10:56 +0300 Subject: [PATCH] Escape newline chars --- src/Connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Connection.php b/src/Connection.php index 11cbc70..5f81186 100644 --- a/src/Connection.php +++ b/src/Connection.php @@ -107,7 +107,7 @@ abstract class Connection { $socket = $this->socket(); - $this->logger->debug('Send buffer: '.$buffer); + $this->logger->debug('Send buffer: '.addcslashes($buffer, PHP_EOL)); try { $socket->write($buffer);