Projekt

Allgemein

Profil

GX-Bug #52208 » ConfigurationSetFunctionFix.patch

Till Tepelmann, 16.06.2017 10:21

Unterschiede anzeigen:

src/admin/configuration.php (revision )
828 828
													// END SKRILL
829 829
													else {
830 830
														$t_configuration_value = isset($_SESSION['configuration_validation_error_values'][$configuration['configuration_key']]) ? $_SESSION['configuration_validation_error_values'][$configuration['configuration_key']] : $configuration['configuration_value'];
831

  
832
														if ($configuration['set_function']) {
831
														$function_name = substr($configuration['set_function'],0,strpos($configuration['set_function'],'('));
832
														if ($configuration['set_function'] && function_exists($function_name)) {
833 833
															eval('$value_field = ' . $configuration['set_function'] . '"' . htmlspecialchars_wrapper($t_configuration_value) . '");');
834 834
														} else {
835 835
															$value_field = xtc_draw_input_field($configuration['configuration_key'], $t_configuration_value,'size=40');
    (1-1/1)