contrib modules security updates

This commit is contained in:
Bachir Soussi Chiadmi
2016-10-13 12:10:40 +02:00
parent ffd758abc9
commit 747127f643
732 changed files with 67976 additions and 23207 deletions

View File

@@ -86,7 +86,6 @@ function ctools_features_export_render($module, $data) {
$code[] = ' return array("api" => "3.0");';
}
else {
$code[] = ' list($module, $api) = func_get_args();';
$code[] = ' if ($module == "'. $info['module'] .'" && $api == "'. $info['api'] .'") {';
$code[] = ' return array("version" => "'. $info['current_version'] .'");';
$code[] = ' }';
@@ -96,10 +95,13 @@ function ctools_features_export_render($module, $data) {
$plugin_api_hook_name = ctools_plugin_api_get_hook($info['module'], $info['api']);
if (key_exists($plugin_api_hook_name, $component_exports)) {
$component_exports[$plugin_api_hook_name] .= "\n" . implode("\n", $code);
$component_exports[$plugin_api_hook_name]['code'] .= "\n" . implode("\n", $code);
}
else {
$component_exports[$plugin_api_hook_name] = implode("\n", $code);
$component_exports[$plugin_api_hook_name] = array(
'code' => implode("\n", $code),
'args' => '$module = NULL, $api = NULL',
);
}
}