Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#58252 closed defect (bug) (duplicate)

Escaping issue found while echoing attribute's dynamic value in html attribute.

Reported by: madhusudandev Owned by:
Priority: normal Milestone:
Component: Administration Version: 6.2
Severity: normal Keywords:
Cc: Focuses: coding-standards

Description

In wp-includes/class-wp-admin-bar.php file, I've found that the there is an escaping issue while echoing attribute's dynamic value in html attribute (like class). The issue is found at line 458 of that file. I think it should be escaped.

I've seen the attribute's dynamic value were escaped in the other lines of that file. Link mentioned below:

https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/class-wp-admin-bar.php#L487
https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/class-wp-admin-bar.php#L514

Change History (2)

#1 @nazmulhudadev
3 years ago

  • Resolutionduplicate
  • Status newclosed

Duplicate of #58251.

This ticket is duplicate of https://core.trac.wordpress.org/ticket/58251

#2 @swissspidy
3 years ago

  • Milestone Awaiting Review
Note: See TracTickets for help on using tickets.