From 58b4b8d6819f56e15fdc9d8624ba6a51e232fe25 Mon Sep 17 00:00:00 2001 From: Jim Wigginton Date: Sat, 17 Sep 2011 18:46:04 +0000 Subject: [PATCH] - make realtime logging better accommodate whitespace git-svn-id: http://phpseclib.svn.sourceforge.net/svnroot/phpseclib/trunk@179 21d32557-59b3-4da0-833f-c5933fad653e --- phpseclib/Net/SFTP.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index dcff9e32..36ced03f 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -1782,7 +1782,7 @@ class Net_SFTP extends Net_SSH2 { $packet_type = '-> ' . $this->packet_types[$type] . ' (' . round($stop - $start, 4) . 's)'; if (NET_SFTP_LOGGING == NET_SFTP_LOG_REALTIME) { - echo $this->_format_log(array($data), array($packet_type)); + echo "
\r\n" . $this->_format_log(array($data), array($packet_type)) . "\r\n
\r\n"; flush(); ob_flush(); } else { @@ -1856,7 +1856,7 @@ class Net_SFTP extends Net_SSH2 { $packet_type = '<- ' . $this->packet_types[$this->packet_type] . ' (' . round($stop - $start, 4) . 's)'; if (NET_SFTP_LOGGING == NET_SFTP_LOG_REALTIME) { - echo $this->_format_log(array($packet), array($packet_type)); + echo "
\r\n" . $this->_format_log(array($packet), array($packet_type)) . "\r\n
\r\n"; flush(); ob_flush(); } else {