From c78c58636765768672a1d101cb2cdb20acbcf224 Mon Sep 17 00:00:00 2001 From: Damien Regad Date: Thu, 11 Oct 2012 14:20:58 +0200 Subject: [PATCH] Fix #14811: XML error in summary page The error occured with Project or Category Name contained special chars --- core/summary_api.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/core/summary_api.php b/core/summary_api.php index c13264cf5f..0123faf281 100644 --- a/core/summary_api.php +++ b/core/summary_api.php @@ -680,7 +680,10 @@ function summary_print_by_category() { $t_bugs_total = $t_bug_link . '&' . FILTER_PROPERTY_HIDE_STATUS . '=">' . $t_bugs_total . ''; } - summary_helper_print_row( $label, $t_bugs_open, $t_bugs_resolved, $t_bugs_closed, $t_bugs_total ); + summary_helper_print_row( + string_display_line( $label ), + $t_bugs_open, $t_bugs_resolved, $t_bugs_closed, $t_bugs_total + ); $t_bugs_open = 0; $t_bugs_resolved = 0; @@ -727,7 +730,10 @@ function summary_print_by_category() { } } - summary_helper_print_row( $label, $t_bugs_open, $t_bugs_resolved, $t_bugs_closed, $t_bugs_total ); + summary_helper_print_row( + string_display_line( $label ), + $t_bugs_open, $t_bugs_resolved, $t_bugs_closed, $t_bugs_total + ); } } @@ -797,7 +803,10 @@ function summary_print_by_project( $p_projects = null, $p_level = 0, $p_cache = $t_bugs_closed = isset( $t_pdata['closed'] ) ? $t_pdata['closed'] : 0; $t_bugs_total = $t_bugs_open + $t_bugs_resolved + $t_bugs_closed; - summary_helper_print_row( $t_name, $t_bugs_open, $t_bugs_resolved, $t_bugs_closed, $t_bugs_total ); + summary_helper_print_row( + string_display_line( $t_name ), + $t_bugs_open, $t_bugs_resolved, $t_bugs_closed, $t_bugs_total + ); if ( count( project_hierarchy_get_subprojects ( $t_project ) ) > 0 ) { $t_subprojects = current_user_get_accessible_subprojects( $t_project );