Skip to content

Commit

Permalink
Allow for comma's in subnet for discoveries.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-unwin committed Jun 13, 2019
1 parent fb4c294 commit d9b78e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code_igniter/application/models/m_collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ public function update($data = null, $collection = '')
if (!empty($received_other->subnet)) {
$other->subnet = $received_other->subnet;
$data->description = 'Subnet - ' . $received_other->subnet;
if (stripos($received_other->subnet, '-') === false) {
if (stripos($received_other->subnet, '-') === false and stripos($received_other->subnet, ',') === false) {
$this->load->helper('network');
$temp = network_details($received_other->subnet);
if (!empty($temp->error) and filter_var($received_other->subnet, FILTER_VALIDATE_IP) === false) {
Expand Down

0 comments on commit d9b78e2

Please sign in to comment.