Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/wp-trackback.php
Original file line number Diff line number Diff line change
Expand Up @@ -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_html ( $error_message ) . "</message>\n";
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @sabernhardt in his comment on the ticket that esc_xml() would better here than esc_html()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

switching the function, and removing a space after the function name:

Suggested change
echo "<message>" . esc_html ( $error_message ) . "</message>\n";
echo "<message>" . esc_xml( $error_message ) . "</message>\n";

echo '</response>';
die();
} else {
Expand Down
Loading