Opened 16 years ago
Closed 16 years ago
#5901 closed defect (bug) (fixed)
Inconsistent user option name sanitization
Reported by: | filosofo | Owned by: | |
---|---|---|---|
Milestone: | 2.5 | Priority: | normal |
Severity: | normal | Version: | 2.5 |
Component: | General | Keywords: | update_user_option get_user_option has-patch sanitization |
Focuses: | Cc: |
Description
update_user_option
sanitizes the option name, because it sends the option to update_usermeta
which does the sanitizing. However, get_user_option
doesn't sanitize the option name before checking whether the option is among the userdata. So, if your option name has non-kosher characters, you'll never be able to retrieve it using get_user_option
.
The attached patch sanitizes the option in get_user_option
.
Attachments (1)
Change History (2)
Note: See
TracTickets for help on using
tickets.
(In [6902]) Make user option name sanitization consistent. Props filosofo. fixes #5901