From dff5f19b6b6a7e92a697f4f09ee2f1332c1e64c9 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 13 Feb 2007 18:19:24 +0000 Subject: [PATCH] specialchars wp_explain_nonce() ouput. git-svn-id: http://svn.automattic.com/wordpress/trunk@4875 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 6d4a66b25..b5138aff9 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1285,9 +1285,9 @@ function wp_nonce_ays($action) { $html .= "\t\t\n"; } $html .= "\t\t\n"; - $html .= "\t\t
\n\t\t

" . wp_explain_nonce($action) . "

\n\t\t

" . __('No') . "

\n\t\t
\n\t\n"; + $html .= "\t\t
\n\t\t

" . wp_specialchars(wp_explain_nonce($action)) . "

\n\t\t

" . __('No') . "

\n\t\t
\n\t\n"; } else { - $html .= "\t
\n\t

" . wp_explain_nonce($action) . "

\n\t

" . __('No') . " " . __('Yes') . "

\n\t
\n"; + $html .= "\t
\n\t

" . wp_specialchars(wp_explain_nonce($action)) . "

\n\t

" . __('No') . " " . __('Yes') . "

\n\t
\n"; } $html .= "\n"; wp_die($html, $title);