From 27544197310a62109cff71bc7cc7070b2755e7f6 Mon Sep 17 00:00:00 2001 From: iandunn Date: Wed, 16 May 2018 22:39:21 +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. Fixes #44115. Built from https://develop.svn.wordpress.org/trunk@43290 git-svn-id: http://core.svn.wordpress.org/trunk@43119 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 e043908c30..37349ccaef 100644 --- a/wp-admin/edit-form-comment.php +++ b/wp-admin/edit-form-comment.php @@ -30,7 +30,11 @@ if ( 'approved' === wp_get_comment_status( $comment ) && $comment->comment_post_
diff --git a/wp-includes/version.php b/wp-includes/version.php index 405a03165b..3cb4664801 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-43286'; +$wp_version = '5.0-alpha-43290'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.