diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 8179b93596..1446cb753c 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1270,7 +1270,7 @@ function wp_nonce_ays($action) { $adminurl = get_option('siteurl') . '/wp-admin'; if ( wp_get_referer() ) - $adminurl = wp_get_referer(); + $adminurl = attribute_escape(wp_get_referer()); $title = __('WordPress Confirmation'); // Remove extra layer of slashes. @@ -1287,7 +1287,7 @@ function wp_nonce_ays($action) { $html .= "\t\t\n"; $html .= "\t\t
" . wp_specialchars(wp_explain_nonce($action)) . "
\n\t\t\n\t\t" . wp_specialchars(wp_explain_nonce($action)) . "
\n\t\n\t" . wp_specialchars(wp_explain_nonce($action)) . "
\n\t\n\t