Escape newline chars

This commit is contained in:
2021-01-23 02:10:56 +03:00
parent b6995c8f3d
commit 33e96e6bdc

View File

@ -107,7 +107,7 @@ abstract class Connection
{ {
$socket = $this->socket(); $socket = $this->socket();
$this->logger->debug('Send buffer: '.$buffer); $this->logger->debug('Send buffer: '.addcslashes($buffer, PHP_EOL));
try { try {
$socket->write($buffer); $socket->write($buffer);