mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 17:14:46 +00:00
wizard: do not interpret passed values for #1359
This commit is contained in:
parent
67e3e70750
commit
593d7525ae
@ -197,7 +197,7 @@ function update_config_field($field, $updatetext, $unset, $arraynum, $field_type
|
||||
if($field_type == "interfaces_selection") {
|
||||
$var = "\$config{$field_conv}";
|
||||
$text = "if (isset({$var})) unset({$var});";
|
||||
$text .= "\$config" . $field_conv . " = \"" . $updatetext . "\";";
|
||||
$text .= "\$config" . $field_conv . " = '" . addslashes($updatetext) . "';";
|
||||
eval($text);
|
||||
return;
|
||||
}
|
||||
@ -206,7 +206,7 @@ function update_config_field($field, $updatetext, $unset, $arraynum, $field_type
|
||||
$text = "unset(\$config" . $field_conv . ");";
|
||||
eval($text);
|
||||
}
|
||||
$text = "\$config" . $field_conv . " = \"" . addslashes($updatetext) . "\";";
|
||||
$text = "\$config" . $field_conv . " = '" . addslashes($updatetext) . "';";
|
||||
eval($text);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user