Skip to content
Snippets Groups Projects
Commit 0a423117 authored by Marius Burkard's avatar Marius Burkard
Browse files

Apply 1 suggestion(s) to 1 file(s)

parent 5d0e31b7
No related branches found
No related tags found
No related merge requests found
......@@ -306,7 +306,7 @@ class validate_dns {
foreach($field_value_array as $field_value) {
// Check if the IP is valid without range
$subnet = '';
$ip = $field_value;
$ip = trim($field_value);
if(strpos($ip, '/') !== false) {
list($ip, $subnet) = explode('/', $ip, 2);
$ip = trim($ip);
......
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