mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
In log headers, only escape information when necessary.
This commit is contained in:
parent
a9f0b10e2e
commit
c1e656d89e
4 changed files with 24 additions and 14 deletions
|
@ -271,7 +271,7 @@ void ODesc::AddBytes(const void* bytes, unsigned int n)
|
|||
}
|
||||
else
|
||||
{
|
||||
string esc_str = get_escaped_string(string(p.first, p.second));
|
||||
string esc_str = get_escaped_string(string(p.first, p.second), true);
|
||||
AddBytesRaw(esc_str.c_str(), esc_str.size());
|
||||
}
|
||||
s = p.first + p.second;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue