@@ -104,9 +104,9 @@ function mc_issue_get( $p_username, $p_password, $p_issue_id ) {
104
104
$ t_issue_data ['target_version ' ] = mci_null_if_empty ( $ t_bug ->target_version );
105
105
$ t_issue_data ['due_date ' ] = mci_issue_get_due_date ( $ t_bug );
106
106
107
- $ t_issue_data ['description ' ] = $ t_bug ->description ;
108
- $ t_issue_data ['steps_to_reproduce ' ] = mci_null_if_empty ( $ t_bug ->steps_to_reproduce );
109
- $ t_issue_data ['additional_information ' ] = mci_null_if_empty ( $ t_bug ->additional_information );
107
+ $ t_issue_data ['description ' ] = mci_sanitize_xml_string ( $ t_bug ->description ) ;
108
+ $ t_issue_data ['steps_to_reproduce ' ] = mci_null_if_empty ( mci_sanitize_xml_string ( $ t_bug ->steps_to_reproduce ) );
109
+ $ t_issue_data ['additional_information ' ] = mci_null_if_empty ( mci_sanitize_xml_string ( $ t_bug ->additional_information ) );
110
110
111
111
$ t_issue_data ['attachments ' ] = mci_issue_get_attachments ( $ p_issue_id );
112
112
$ t_issue_data ['relationships ' ] = mci_issue_get_relationships ( $ p_issue_id , $ t_user_id );
@@ -318,7 +318,7 @@ function mci_issue_get_notes( $p_issue_id ) {
318
318
$ t_bugnote ['reporter ' ] = mci_account_get_array_by_id ( $ t_value ->reporter_id );
319
319
$ t_bugnote ['date_submitted ' ] = timestamp_to_iso8601 ( $ t_value ->date_submitted , false );
320
320
$ t_bugnote ['last_modified ' ] = timestamp_to_iso8601 ( $ t_value ->last_modified , false );
321
- $ t_bugnote ['text ' ] = $ t_value ->note ;
321
+ $ t_bugnote ['text ' ] = mci_sanitize_xml_string ( $ t_value ->note ) ;
322
322
$ t_bugnote ['view_state ' ] = mci_enum_get_array_by_id ( $ t_value ->view_state , 'view_state ' , $ t_lang );
323
323
$ t_bugnote ['time_tracking ' ] = $ t_has_time_tracking_access ? $ t_value ->time_tracking : 0 ;
324
324
$ t_bugnote ['note_type ' ] = $ t_value ->note_type ;
0 commit comments