diff --git a/core/cfdefs/cfdef_standard.php b/core/cfdefs/cfdef_standard.php index a2a9c19d31..575459258c 100644 --- a/core/cfdefs/cfdef_standard.php +++ b/core/cfdefs/cfdef_standard.php @@ -211,11 +211,11 @@ function cfdef_prepare_date_default( $p_value ) { #string_custom_field_value function cfdef_prepare_list_value($p_value) { // strip start and end markers before converting markers to commas - return str_replace( '|', ', ', utf8_substr( str_replace( '||', '|', '|' . $p_value . '|' ), 1, -1 ) ); + return string_display_line( str_replace( '|', ', ', utf8_substr( str_replace( '||', '|', '|' . $p_value . '|' ), 1, -1 ) ) ); } function cfdef_prepare_email_value($p_value) { - return "$p_value"; + return "" . string_display_line( $p_value ) . ""; } function cfdef_prepare_date_value($p_value) { @@ -248,9 +248,9 @@ function cfdef_input_list($p_field_def, $t_custom_field_value) { $t_selected_values = explode( '|', $t_custom_field_value ); foreach( $t_values as $t_option ) { if( in_array( $t_option, $t_selected_values, true ) ) { - echo ''; + echo ''; } else { - echo ''; + echo ''; } } echo ''; @@ -262,9 +262,9 @@ function cfdef_input_checkbox($p_field_def, $t_custom_field_value) { foreach( $t_values as $t_option ) { echo ' ' . $t_option . '  '; + echo ' value="' . string_attribute( $t_option ) . '" checked="checked"> ' . string_display_line( $t_option ) . '  '; } else { - echo ' value="' . $t_option . '"> ' . $t_option . '  '; + echo ' value="' . string_attribute( $t_option ) . '"> ' . string_display_line( $t_option ) . '  '; } } } @@ -283,9 +283,9 @@ function cfdef_input_radio( $p_field_def, $p_custom_field_value ) { echo ' ' . $t_option . '  '; + echo ' value="' . string_attribute( $t_option ) . '" checked="checked"> ' . string_display_line( $t_option ) . '  '; } else { - echo ' value="' . $t_option . '"> ' . $t_option . '  '; + echo ' value="' . string_attribute( $t_option ) . '"> ' . string_display_line( $t_option ) . '  '; } } } @@ -297,7 +297,7 @@ function cfdef_input_textbox($p_field_def, $t_custom_field_value) { } else { echo ' maxlength="255"'; } - echo ' value="' . $t_custom_field_value .'">'; + echo ' value="' . string_attribute( $t_custom_field_value ) .'">'; } /**