Opened 14 years ago
Closed 14 years ago
#21892 closed defect (bug) (fixed)
sanitize_option() adds and strip slashes to use the wrong kses functions
| Reported by: | nacin | Owned by: | nacin |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | Formatting | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
sanitize_option() does this:
$value = addslashes($value); $value = wp_filter_post_kses( $value ); // calls stripslashes then addslashes $value = stripslashes($value);
When it should instead do this:
$value = wp_kses_post( $value );
Likewise for wp_filter_kses() versus wp_kses_data().
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In [21850]: