Skip to content
Snippets Groups Projects
Commit 08c8d528 authored by Tomáš Plesník's avatar Tomáš Plesník
Browse files

do logovaci hlasky doplneny apostrofy

parent 85a0aabe
No related branches found
No related tags found
No related merge requests found
...@@ -242,30 +242,30 @@ sub saveNewEvent ...@@ -242,30 +242,30 @@ sub saveNewEvent
my $change_string = ""; my $change_string = "";
if ($target_port !~ /^\d+\z/) { if ($target_port !~ /^\d+\z/) {
$change_string = $change_string . "target_port: $target_port"; $change_string = $change_string . "target_port: '$target_port'";
$target_port = undef; $target_port = undef;
} }
if ($attack_scale !~ /^\d+\z/) { if ($attack_scale !~ /^\d+\z/) {
if ($change_string eq "") { if ($change_string eq "") {
$change_string = $change_string . "attack_scale: $attack_scale"; $change_string = $change_string . "attack_scale: '$attack_scale'";
} else { } else {
$change_string = $change_string . ", attack_scale: $attack_scale"; $change_string = $change_string . ", attack_scale: '$attack_scale'";
} }
$attack_scale = undef; $attack_scale = undef;
} }
if ($priority !~ /^\d+\z/) { if ($priority !~ /^\d+\z/) {
if ($change_string eq "") { if ($change_string eq "") {
$change_string = $change_string . "priority: $priority"; $change_string = $change_string . "priority: '$priority'";
} else { } else {
$change_string = $change_string . ", priority: $priority"; $change_string = $change_string . ", priority: '$priority'";
} }
$priority = undef; $priority = undef;
} }
if ($timeout !~ /^\d+\z/) { if ($timeout !~ /^\d+\z/) {
if ($change_string eq "") { if ($change_string eq "") {
$change_string = $change_string . "attack_scale: $timeout"; $change_string = $change_string . "attack_scale: '$timeout'";
} else { } else {
$change_string = $change_string . ", attack_scale: $timeout"; $change_string = $change_string . ", attack_scale: '$timeout'";
} }
$timeout = undef; $timeout = undef;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment