From 2e3e405fdbb0c9f9ad5ded74580b9a88c22c4cbb Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 21 May 2018 12:39:54 +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. git-svn-id: https://develop.svn.wordpress.org/branches/4.9@43301 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/edit-form-comment.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/edit-form-comment.php b/src/wp-admin/edit-form-comment.php index 2ae7957f72..651ff15bab 100644 --- a/src/wp-admin/edit-form-comment.php +++ b/src/wp-admin/edit-form-comment.php @@ -29,7 +29,11 @@ if ( 'approved' === wp_get_comment_status( $comment ) && $comment->comment_post_