diff --git a/sites/all/modules/workflow/workflow.pages.inc b/sites/all/modules/workflow/workflow.pages.inc index 37c806d..460c2b8 100644 --- a/sites/all/modules/workflow/workflow.pages.inc +++ b/sites/all/modules/workflow/workflow.pages.inc @@ -45,7 +45,7 @@ function workflow_tab_page($node = NULL) { } else { // Regular state. - $state_name = $states[$history->sid]; + $state_name = check_plain(t($states[$history->sid])); } if (isset($deleted_states[$history->old_sid])) { @@ -53,7 +53,7 @@ function workflow_tab_page($node = NULL) { $footer_needed = TRUE; } else { - $old_state_name = $states[$history->old_sid]; + $old_state_name = check_plain(t($states[$history->old_sid])); } $rows[] = theme('workflow_history_table_row', $history, $old_state_name, $state_name); } @@ -66,10 +66,11 @@ function workflow_tab_page($node = NULL) { * Theme one workflow history table row. */ function theme_workflow_history_table_row($history, $old_state_name, $state_name) { + // $old_state_name and $state_name should already have been run through check_plain() and t() return array( format_date($history->stamp), - check_plain(t($old_state_name)), - check_plain(t($state_name)), + $old_state_name, + $state_name, theme('username', $history), filter_xss($history->comment, array('a', 'em', 'strong')), );