Revision 82e22457
Added by Marcos M about 1 year ago
src/usr/local/www/diag_confbak.php | ||
---|---|---|
49 | 49 |
} |
50 | 50 |
} |
51 | 51 |
|
52 |
$confvers = unserialize(file_get_contents(g_get('cf_conf_path') . '/backup/backup.cache'));
|
|
52 |
$confvers = unserialize_data(file_get_contents(g_get('cf_conf_path') . '/backup/backup.cache'), []);
|
|
53 | 53 |
|
54 | 54 |
if ($_POST['newver'] != "") { |
55 | 55 |
if (config_restore(g_get('conf_path') . '/backup/config-' . $_POST['newver'] . '.xml') == 0) { |
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.