Merge pull request #876 from BeigeBox/fix/remotecontrol-format-string

Fix format string vulnerability in remote command logging
This commit is contained in:
Jonathan Naylor 2026-04-06 19:49:06 +01:00 committed by GitHub
commit f3710b25c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -199,9 +199,9 @@ REMOTE_COMMAND CRemoteControl::getCommand(const std::string& command)
if (m_command == REMOTE_COMMAND::NONE) {
m_args.clear();
LogWarning(buffer);
LogWarning("%s", buffer);
} else {
LogMessage(buffer);
LogMessage("%s", buffer);
}
m_mqtt->publish("response", reply.c_str());