1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

ftpserver: output CRLF in logs

Previously the log function would just filter out all CR and LF
occurances from the log to make it more readable. This had the downside
that it made it very hard to see CR LFs when they actually matters.

Now, they're instead converted to "[CR]" and "[LR]" in the log to become
apparent to readers.
This commit is contained in:
Daniel Stenberg 2011-11-29 13:41:10 +01:00
parent dda815b776
commit 2d72489f0f

View File

@ -327,7 +327,8 @@ sub sendcontrol {
my $log;
foreach $log (@_) {
my $l = $log;
$l =~ s/[\r\n]//g;
$l =~ s/\r/[CR]/g;
$l =~ s/\n/[LF]/g;
logmsg "> \"$l\"\n";
}
}