mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[ticket/10824] Use json sanitizer in language_file_helper
PHPBB3-10824
This commit is contained in:
@@ -54,7 +54,7 @@ class language_file_helper
|
|||||||
foreach ($finder as $file)
|
foreach ($finder as $file)
|
||||||
{
|
{
|
||||||
$json = $file->getContents();
|
$json = $file->getContents();
|
||||||
$data = json_decode($json, true);
|
$data = \phpbb\json_sanitizer::sanitize(json_decode($json, true));
|
||||||
|
|
||||||
$available_languages[] = $this->get_language_data_from_json($data);
|
$available_languages[] = $this->get_language_data_from_json($data);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user