From ac4d875f9415a4851a8073d3851aefecb5187cff Mon Sep 17 00:00:00 2001 From: Ian Dunn Date: Wed, 16 May 2018 22:38:20 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@43290 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 e043908c30..37349ccaef 100644 --- a/src/wp-admin/edit-form-comment.php +++ b/src/wp-admin/edit-form-comment.php @@ -30,7 +30,11 @@ if ( 'approved' === wp_get_comment_status( $comment ) && $comment->comment_post_