Revision 82e22457
Added by Marcos M about 1 year ago
src/usr/local/www/system_routes.php | ||
---|---|---|
47 | 47 |
|
48 | 48 |
$routes_apply_file = g_get('tmp_path') . '/.system_routes.apply'; |
49 | 49 |
if (file_exists($routes_apply_file)) { |
50 |
$toapplylist = unserialize(file_get_contents($routes_apply_file));
|
|
50 |
$toapplylist = unserialize_data(file_get_contents($routes_apply_file), []);
|
|
51 | 51 |
foreach ($toapplylist as $toapply) { |
52 | 52 |
mwexec($toapply); |
53 | 53 |
} |
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.