From 6fea4b09429c2ef4c20ae7a13a522e438036db67 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 13 Feb 2007 18:19:24 +0000 Subject: [PATCH] specialchars wp_explain_nonce() ouput. git-svn-id: https://develop.svn.wordpress.org/trunk@4875 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 6d4a66b253..b5138aff9b 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);