mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Remove leading and trailing double quotes from agent_name. Ref
artica/pandora_enterprise#695.
This commit is contained in:
parent
6081b69a92
commit
1cab3d1921
@ -1442,6 +1442,10 @@ Pandora_Windows_Service::checkAgentName(string filename){
|
||||
pos = buffer.find("agent_name");
|
||||
if (pos != string::npos){
|
||||
name_agent = buffer.substr(pos+11);
|
||||
if (name_agent.at(0) == '"' && name_agent.at(name_agent.size() - 1) == '"') {
|
||||
name_agent.erase(0, 1);
|
||||
name_agent.erase(name_agent.size() - 1, 1);
|
||||
}
|
||||
return name_agent;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user