#2283 closed defect (bug) (fixed)
Profile fields (drop down) problem with apostrophe
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 1.5 | Priority: | normal |
Severity: | Version: | ||
Component: | Extended Profile | Keywords: | 2nd-opinion close |
Cc: |
Description
When save profile fields dropdown, if in the options there is an apostrophe, the apostrophe generates a backslash before itself.
Example:
It's never enough
Becomes:
It/'s never enough
It affects both the Profile Fields UI, both backend and frontend (missing a stripslashes call).
Change History (13)
#7
@
14 years ago
This was an issue not only for the dropdown, but also for radio buttons and for checkboxes. It applied not just to the text display, but also to the value of the input, so that those field values weren't saving correctly. This seemed serious enough to sneak a fix into the 1.2 branch as well.
#8
@
14 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
The same type of problem also occurs on the xprofile 'edit field' admin screen; render_admin_form_children().
I am going to fix the output, but the real question is why is the apostrophe being escaped before it is saved?