mirror of
https://github.com/lucaspalomodevelop/opnsense-core.git
synced 2026-03-13 00:07:27 +00:00
ipsec: fix trimming NULL values
Not sure how I managed to misconfigure this but since the function relies on returning null make the trimming conditional.
This commit is contained in:
parent
e09112ab45
commit
302ed6b037
@ -686,7 +686,7 @@ function ipsec_find_id(&$ph1ent, $side = 'local')
|
||||
$thisid_data = $id_data;
|
||||
}
|
||||
|
||||
return trim($thisid_data);
|
||||
return is_string($thisid_data) ? trim($thisid_data) : $thisid_data;
|
||||
}
|
||||
|
||||
/* include all configuration functions */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user