MDL-70920 core: prevent calls to call_user_fun_array() with assoc array

This commit is contained in:
Marina Glancy
2021-02-21 22:22:21 +01:00
parent 7b003c04a8
commit f4fb91aecb
4 changed files with 13 additions and 3 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ class core_shutdown_manager {
error_log('Invalid custom shutdown function detected '.var_export($callback, true));
// @codingStandardsIgnoreEnd
}
self::$callbacks[] = [$callback, $params ?? []];
self::$callbacks[] = [$callback, $params ? array_values($params) : []];
}
/**