mirror of https://github.com/Icinga/icinga2.git
RedisWriter#SendStatusUpdate(): ensure valid UTF-8 output
This commit is contained in:
parent
d9ff921934
commit
fe49141490
|
@ -43,6 +43,7 @@
|
|||
#include "base/convert.hpp"
|
||||
#include "base/array.hpp"
|
||||
#include "base/exception.hpp"
|
||||
#include "base/utility.hpp"
|
||||
#include <iterator>
|
||||
#include <map>
|
||||
#include <set>
|
||||
|
@ -1024,7 +1025,7 @@ void RedisWriter::SendStatusUpdate(const ConfigObject::Ptr& object)
|
|||
ObjectLock olock(objectAttrs);
|
||||
for (const Dictionary::Pair& kv : objectAttrs) {
|
||||
streamadd.emplace_back(kv.first);
|
||||
streamadd.emplace_back(kv.second);
|
||||
streamadd.emplace_back(Utility::ValidateUTF8(kv.second));
|
||||
}
|
||||
|
||||
m_Rcon->FireAndForgetQuery(std::move(streamadd));
|
||||
|
|
Loading…
Reference in New Issue