Make WordPress Core

Opened 3 years ago

Closed 2 years ago

#60978 closed defect (bug) (fixed)

Add missing escapes

Reported by: nareshbheda Owned by: audrasjb
Priority: normal Milestone: 6.6
Component: Upload Version:
Severity: normal Keywords: has-patch
Cc: Focuses: coding-standards

Description

Add missing escapes in the wp-admin/async-upload.php file.

Attachments (3)

60978.patch​ (1.2 KB ) - added by nareshbheda 3 years ago.
60978.2.patch​ (1.2 KB ) - added by nareshbheda 3 years ago.
60978.3.patch​ (1.6 KB ) - added by nareshbheda 3 years ago.

Download all attachments as: .zip

Change History (8)

#1 @mukesh27
3 years ago

Thanks for ticket and patch!

Could you add escape in line 63 wp_basename( $file )?

#2 @audrasjb
3 years ago

  • Component General → Upload
  • Milestone Awaiting Review → 6.6

Thanks for the ticket and patch,

Moving for 6.6 consideration.

#3 @audrasjb
3 years ago

  • Owner set to audrasjb
  • Status new → reviewing

#4 @audrasjb
2 years ago

I updated the patch to avoid a duplicate escape on $title.

#5 @audrasjb
2 years ago

  • Resolution → fixed
  • Status reviewing → closed

In 58210:

Upload: Add missing escaping functions in wp-admin/async-upload.php.

Props nareshbheda, mukesh27.
Fixes #60978.

Note: See TracTickets for help on using tickets.