mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05: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:
parent
dda815b776
commit
2d72489f0f
@ -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";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user