Skip to content

Commit

Permalink
Fix discoveriesModel::update to allow update on empty string for time…
Browse files Browse the repository at this point in the history
…out, timing, nmap_tcp_ports, nmap_udp_ports.
  • Loading branch information
mark-unwin committed Jul 4, 2024
1 parent 3c77ca3 commit e2d9276
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/Models/DiscoveriesModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,6 @@ public function update($id = null, $data = null): bool
$GLOBALS['stash'] = $error;
return false;
} else {
$db_scan_options->timeout = intval($db_scan_options->timeout);
$db_scan_options->timeout = $data->scan_options->timeout;
}
}
Expand All @@ -1243,7 +1242,6 @@ public function update($id = null, $data = null): bool
$GLOBALS['stash'] = $error;
return false;
} else {
$db_scan_options->timing = intval($db_scan_options->timing);
$db_scan_options->timing = $data->scan_options->timing;
}
}
Expand All @@ -1254,7 +1252,6 @@ public function update($id = null, $data = null): bool
$GLOBALS['stash'] = $error;
return false;
} else {
$db_scan_options->nmap_tcp_ports = intval($db_scan_options->nmap_tcp_ports);
$db_scan_options->nmap_tcp_ports = $data->scan_options->nmap_tcp_ports;
}
}
Expand All @@ -1265,7 +1262,6 @@ public function update($id = null, $data = null): bool
$GLOBALS['stash'] = $error;
return false;
} else {
$db_scan_options->nmap_udp_ports = intval($db_scan_options->nmap_udp_ports);
$db_scan_options->nmap_udp_ports = $data->scan_options->nmap_udp_ports;
}
}
Expand Down

0 comments on commit e2d9276

Please sign in to comment.