mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 02:54:38 +00:00
Hopeful fix for #4423 - Incorrect parsing of DUID in dhcpd6.leases.
This commit is contained in:
parent
bbe0f3afe4
commit
7aed1205b5
@ -67,6 +67,7 @@ function parse_duid($duid_string)
|
||||
$n = substr($duid_string, $i+1, 1);
|
||||
if (($n == '\\') || ($n == '"')) {
|
||||
$parsed_duid[] = sprintf("%02x", ord($n));
|
||||
$i += 1;
|
||||
} elseif (is_numeric($n)) {
|
||||
$parsed_duid[] = sprintf("%02x", octdec(substr($duid_string, $i+1, 3)));
|
||||
$i += 3;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user