Privacy: Escape comment URLs in personal export file to prevent XSS.
There doesn't appear to be any way for an attacker to introduce malicious input into the URL, unless a plugin is filtering the URL to add it, but it's better to be safe than sorry. Props birgire. Fixes #44054. Built from https://develop.svn.wordpress.org/trunk@43245 git-svn-id: http://core.svn.wordpress.org/trunk@43074 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
89708c5cec
commit
fc800115a7
|
@ -3353,7 +3353,11 @@ function wp_comments_personal_data_exporter( $email_address, $page = 1 ) {
|
|||
|
||||
case 'comment_link':
|
||||
$value = get_comment_link( $comment->comment_ID );
|
||||
$value = '<a href="' . $value . '" target="_blank" rel="noreferrer noopener">' . $value . '</a>';
|
||||
$value = sprintf(
|
||||
'<a href="%s" target="_blank" rel="noreferrer noopener">%s</a>',
|
||||
esc_url( $value ),
|
||||
esc_html( $value )
|
||||
);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.0-alpha-43244';
|
||||
$wp_version = '5.0-alpha-43245';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue