Opened 12 years ago
Closed 12 years ago
#22326 closed defect (bug) (fixed)
Inconsistent escaping in admin_color_scheme_picker()
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Administration | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
Problem
The output from admin_color_scheme_picker() inconsistently escapes variables created while looping through the $_wp_admin_css_colors global.
More Info
Unescaped variables:
- $color (in some places)
- $color_info->name
- $html_color
Escaped variable:
- $color (in one place)
Solutions
- Escape everything. This makes the most sense to me; we shouldn't expect anyone that's using wp_admin_css_color() to pass already escaped output. Note that core does not escape it's own usage here.
- Escape nothing, and expect escaped input. This is consistent with the rest of the function, but lame and complicated.
Patch Attached
Attached patch escapes all variable screen output.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
In 22375: