From e782caa1e7b94ea1f4d20495bd7ecbe60a1f630b Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 21 May 2018 12:40:26 +0000 Subject: [PATCH] Comments: Escape permalink values on edit screen 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 1naveengiri, joyously. Merges [43290] to the 4.9 branch. Fixes #44115. Built from https://develop.svn.wordpress.org/branches/4.9@43301 git-svn-id: http://core.svn.wordpress.org/branches/4.9@43130 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-form-comment.php | 6 +++++- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/wp-admin/edit-form-comment.php b/wp-admin/edit-form-comment.php index 2ae7957f72..651ff15bab 100644 --- a/wp-admin/edit-form-comment.php +++ b/wp-admin/edit-form-comment.php @@ -29,7 +29,11 @@ if ( 'approved' === wp_get_comment_status( $comment ) && $comment->comment_post_
diff --git a/wp-includes/version.php b/wp-includes/version.php index 7b5df43407..764162f42e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9.7-alpha-43300'; +$wp_version = '4.9.7-alpha-43301'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.