Ticket #3069 (closed defect (bug): fixed)

Opened 5 years ago

Last modified 5 years ago

User description (profile) is stored in database html entity encoded

Reported by: markjaquith Owned by: markjaquith
Priority: normal Milestone:
Component: General Version: 2.1
Severity: normal Keywords: has-patch 2nd-opinion
Cc:

Description

The user description (profile) is stored in the database encoded into html entities. This necessitates extra work if you actually want to display the user description on the site somewhere, like on their author page, and have things like links work.

Attachments

no_entity_encode_user_description.diff Download (612 bytes) - added by markjaquith 5 years ago.
Patch for /trunk/

Change History

Patch for /trunk/

  • Keywords has-patch 2nd-opinion added
  • Owner changed from anonymous to markjaquith
  • Status changed from new to assigned

Patch removes call to wp_specialchars();

This will need a security check to make sure that wp_specialchars() call wasn't protecting against script injection. It's already kses'd via filters, however.

Do we need to do any database upgrade on this?

Where are we kses's the profile - a quick search lead me to nothing.

comment:3   ryan5 years ago

  • Status changed from assigned to closed
  • Resolution set to fixed

(In [4118]) Don't specialchar user description on save. fixes #3069

comment:4   ryan5 years ago

Most of the wp_specialchars calls in that function can be removed since the filters for those elements take care of specialchars.

comment:5   ryan5 years ago

(In [4230]) Don't specialchar user description on save. fixes #3069

  • Milestone changed from 2.1 to 2.0.5
  • Milestone 2.0.5 deleted

Milestone 2.0.5 deleted

Note: See TracTickets for help on using tickets.