mirror of https://github.com/Icinga/icinga2.git
ido: Escape application version.
This commit is contained in:
parent
b695f08081
commit
8894a77a19
|
@ -157,7 +157,7 @@ void IdoMysqlConnection::ReconnectTimerHandler(void)
|
||||||
/* record connection */
|
/* record connection */
|
||||||
Query("INSERT INTO " + GetTablePrefix() + "conninfo " +
|
Query("INSERT INTO " + GetTablePrefix() + "conninfo " +
|
||||||
"(instance_id, connect_time, last_checkin_time, agent_name, agent_version, connect_type, data_start_time) VALUES ("
|
"(instance_id, connect_time, last_checkin_time, agent_name, agent_version, connect_type, data_start_time) VALUES ("
|
||||||
+ Convert::ToString(static_cast<long>(m_InstanceID)) + ", NOW(), NOW(), 'icinga2 db_ido_mysql', " + Application::GetVersion()
|
+ Convert::ToString(static_cast<long>(m_InstanceID)) + ", NOW(), NOW(), 'icinga2 db_ido_mysql', " + Escape(Application::GetVersion())
|
||||||
+ ", '" + (reconnect ? "RECONNECT" : "INITIAL") + "', NOW())");
|
+ ", '" + (reconnect ? "RECONNECT" : "INITIAL") + "', NOW())");
|
||||||
|
|
||||||
/* clear config tables for the initial config dump */
|
/* clear config tables for the initial config dump */
|
||||||
|
|
Loading…
Reference in New Issue