Fix missing validation of xe_run_method

This commit is contained in:
Kijin Sung 2026-03-03 18:07:56 +09:00
parent cdc713301f
commit bf0899973a
2 changed files with 6 additions and 2 deletions

View file

@ -102,8 +102,8 @@ class addonController extends addon
$buff[] = '$before_time = microtime(true);';
// Run method and mid list
$run_method = ($extra_vars->xe_run_method ?? null) ?: 'run_selected';
$buff[] = '$rm = \'' . $run_method . "';";
$run_method = strval($extra_vars->xe_run_method ?? 'run_selected');
$buff[] = '$rm = ' . var_export($run_method, true) . ';';
$buff[] = '$ml = ' . var_export(array_fill_keys($mid_list, true), true) . ';';
$buff[] = '$_m = Context::get(\'mid\');';