Revision 82e22457
Added by Marcos M about 1 year ago
src/etc/inc/interfaces.inc | ||
---|---|---|
5083 | 5083 |
} |
5084 | 5084 |
|
5085 | 5085 |
if (file_exists("{$g['tmp_path']}/dhcp6c_ifs")) { |
5086 |
$dhcp6crealifs_run = unserialize(file_get_contents("{$g['tmp_path']}/dhcp6c_ifs"));
|
|
5086 |
$dhcp6crealifs_run = unserialize_data(file_get_contents("{$g['tmp_path']}/dhcp6c_ifs"), []);
|
|
5087 | 5087 |
} else { |
5088 | 5088 |
$dhcp6crealifs_run = array(); |
5089 | 5089 |
} |
Also available in: Unified diff
Add a helper function for unserialize(). Fix #15423
For calls to unserialize() which do not check for errors, use the
helper function instead.