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

[ticket/security-171] Sanitize data from composer.json

SECURITY-171
This commit is contained in:
Marc Alexander
2014-11-16 13:09:03 +01:00
parent da1888a7fa
commit 34004612ac
3 changed files with 26 additions and 11 deletions

View File

@@ -123,6 +123,7 @@ class phpbb_extension_metadata_manager_test extends phpbb_database_test_case
}
$json = json_decode(file_get_contents($this->phpbb_root_path . 'ext/vendor2/foo/composer.json'), true);
array_walk_recursive($json, array($manager, 'sanitize_json'));
$this->assertEquals($metadata, $json);
}