Opened 23 months ago
Closed 23 months ago
#58025 closed defect (bug) (fixed)
Wrong escaping function in get_cancel_comment_reply_link()
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.3 | Priority: | normal |
Severity: | normal | Version: | 6.3 |
Component: | Comments | Keywords: | has-patch |
Focuses: | Cc: |
Description
Wrong Escaping Function Was Used in /wp-includes/comment-template.php
Attachments (1)
Change History (5)
#2
@
23 months ago
- Component changed from General to Comments
- Milestone changed from Awaiting Review to 6.3
Good catch! Some history here:
- [9112] added
wp_specialchars()
tocomment_reply_link()
andcancel_comment_reply_link()
. - [9406] moved the code to
get_comment_reply_link()
andget_cancel_comment_reply_link()
. - [11011] replaced
wp_specialchars()
withclean_url()
, but only inget_comment_reply_link()
. - [11380] updated the remaining
wp_specialchars()
toesc_html()
inget_cancel_comment_reply_link()
. - [11383] updated
clean_url()
toesc_url()
inget_comment_reply_link()
.
In short, esc_url()
is indeed the correct function to use here, but it was missed in [11011], and subsequent renamings did not catch that.
Note: See
TracTickets for help on using
tickets.
Thanks @chintan1896 for the patch.
Patch looks good to me.