diff options
author | David Rothstein <drothstein@gmail.com> | 2014-11-05 02:09:34 -0500 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2014-11-05 02:09:34 -0500 |
commit | 86a1ebefd3073713e795035c5bc0b0d1024a2189 (patch) | |
tree | 90ce2fbb69b5920d710dbb874e67778f717f50f3 /includes/theme.inc | |
parent | abb166c0b246450989c375978502f1827331421a (diff) | |
download | brdo-86a1ebefd3073713e795035c5bc0b0d1024a2189.tar.gz brdo-86a1ebefd3073713e795035c5bc0b0d1024a2189.tar.bz2 |
Issue #2307505 by Cottser, David_Rothstein, Fabianx: Followup to ensure all theme debug output is properly sanitized.
Diffstat (limited to 'includes/theme.inc')
-rw-r--r-- | includes/theme.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index d2a142b64..ed34b8289 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -1554,7 +1554,7 @@ function _theme_render_template_debug($template_function, $template_file, $varia 'debug_suffix' => '', ); $output['debug_prefix'] .= "\n\n<!-- THEME DEBUG -->"; - $output['debug_prefix'] .= "\n<!-- CALL: theme('{$variables['theme_hook_original']}') -->"; + $output['debug_prefix'] .= "\n<!-- CALL: theme('" . check_plain($variables['theme_hook_original']) . "') -->"; // If there are theme suggestions, reverse the array so more specific // suggestions are shown first. if (!empty($variables['theme_hook_suggestions'])) { @@ -1587,10 +1587,10 @@ function _theme_render_template_debug($template_function, $template_file, $varia $prefix = ($template == $current_template) ? 'x' : '*'; $suggestion = $prefix . ' ' . $template; } - $output['debug_info'] .= "\n<!-- FILE NAME SUGGESTIONS:\n " . implode("\n ", $suggestions) . "\n-->"; + $output['debug_info'] .= "\n<!-- FILE NAME SUGGESTIONS:\n " . check_plain(implode("\n ", $suggestions)) . "\n-->"; } - $output['debug_info'] .= "\n<!-- BEGIN OUTPUT from '{$template_file}' -->\n"; - $output['debug_suffix'] .= "\n<!-- END OUTPUT from '{$template_file}' -->\n\n"; + $output['debug_info'] .= "\n<!-- BEGIN OUTPUT from '" . check_plain($template_file) . "' -->\n"; + $output['debug_suffix'] .= "\n<!-- END OUTPUT from '" . check_plain($template_file) . "' -->\n\n"; return implode('', $output); } |