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:
Sergey Biryukov
2026-05-24 21:46:43 +00:00
parent 9c43743d53
commit 192f987ac6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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 {