Skip to content

Commit 0a42311

Browse files
author
Marius Burkard
committed
Apply 1 suggestion(s) to 1 file(s)
1 parent 5d0e31b commit 0a42311

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/lib/classes/validate_dns.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ function validate_ip($field_name, $field_value, $validator) {
306306
foreach($field_value_array as $field_value) {
307307
// Check if the IP is valid without range
308308
$subnet = '';
309-
$ip = $field_value;
309+
$ip = trim($field_value);
310310
if(strpos($ip, '/') !== false) {
311311
list($ip, $subnet) = explode('/', $ip, 2);
312312
$ip = trim($ip);

0 commit comments

Comments
 (0)