mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
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/convert.hpp"
|
||||||
#include "base/array.hpp"
|
#include "base/array.hpp"
|
||||||
#include "base/exception.hpp"
|
#include "base/exception.hpp"
|
||||||
|
#include "base/utility.hpp"
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <set>
|
#include <set>
|
||||||
@ -1024,7 +1025,7 @@ void RedisWriter::SendStatusUpdate(const ConfigObject::Ptr& object)
|
|||||||
ObjectLock olock(objectAttrs);
|
ObjectLock olock(objectAttrs);
|
||||||
for (const Dictionary::Pair& kv : objectAttrs) {
|
for (const Dictionary::Pair& kv : objectAttrs) {
|
||||||
streamadd.emplace_back(kv.first);
|
streamadd.emplace_back(kv.first);
|
||||||
streamadd.emplace_back(kv.second);
|
streamadd.emplace_back(Utility::ValidateUTF8(kv.second));
|
||||||
}
|
}
|
||||||
|
|
||||||
m_Rcon->FireAndForgetQuery(std::move(streamadd));
|
m_Rcon->FireAndForgetQuery(std::move(streamadd));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user