Fixed issue with last hash symbol

This commit is contained in:
José González 2021-05-19 15:22:24 +02:00
parent 45b5ab4589
commit e0ec645613
2 changed files with 4 additions and 2 deletions
pandora_agents/unix
pandora_server/util

View File

@ -198,7 +198,8 @@ sub tool_api_main () {
$id_group = $ARGV[$i + 1];
}
if ($line eq '-name') {
$event_name = join('%23', split("#", $ARGV[$i + 1]));
$event_name = $ARGV[$i + 1];
$event_name =~ s/#/%23/g;
}
if ($line eq '-type') {
$event_type = $ARGV[$i + 1];

View File

@ -198,7 +198,8 @@ sub tool_api_main () {
$id_group = $ARGV[$i + 1];
}
if ($line eq '-name') {
$event_name = join('%23', split("#", $ARGV[$i + 1]));
$event_name = $ARGV[$i + 1];
$event_name =~ s/#/%23/g;
}
if ($line eq '-type') {
$event_type = $ARGV[$i + 1];