mirror of
https://github.com/WordPress/WordPress.git
synced 2026-06-19 07:37:07 +00:00
Pings/Trackbacks: Escape the XML error message in trackback_response().
Props maheshpatel, pbiron, sabernhardt, westonruter, SergeyBiryukov. Fixes #65047. Built from https://develop.svn.wordpress.org/trunk@62414 git-svn-id: http://core.svn.wordpress.org/trunk@61695 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '7.1-alpha-62413';
|
||||
$wp_version = '7.1-alpha-62414';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ function trackback_response( $error = 0, $error_message = '' ) {
|
||||
echo '<?xml version="1.0" encoding="utf-8"?' . ">\n";
|
||||
echo "<response>\n";
|
||||
echo "<error>1</error>\n";
|
||||
echo "<message>$error_message</message>\n";
|
||||
echo '<message>' . esc_xml( $error_message ) . "</message>\n";
|
||||
echo '</response>';
|
||||
die();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user