1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/10824] Use json_sanitzer::decode and improve migrations from pre 3.2

PHPBB3-10824
This commit is contained in:
Marc Alexander
2018-12-28 11:15:40 +01:00
parent 5dc2e500f5
commit 204f81c6f7
6 changed files with 35 additions and 15 deletions

View File

@@ -13,6 +13,8 @@
namespace phpbb\cache;
use phpbb\json_sanitizer;
/**
* Class for grabbing/handling cached entries
*/
@@ -355,7 +357,7 @@ class service
{
// Re-parse cfg file
$json = file_get_contents($filename);
$parsed_array = json_decode($json, true);
$parsed_array = json_sanitizer::decode($json);
$parsed_array['filetime'] = @filemtime($filename);
$this->driver->put('_cfg_' . $style['style_path'], $parsed_array);