Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#16489 closed defect (bug) (fixed)

HTML tags img, pre are cut out from comments

Reported by: advanpix Owned by: ryan
Priority: normal Milestone: 3.1
Component: Comments Version: 3.0.5
Severity: major Keywords:
Cc:

Attachments (3)

3.0.diff (718 bytes) - added by nacin 2 years ago.
For the 3.0 branch with a new nightly.
3.1.diff (644 bytes) - added by nacin 2 years ago.
For 3.1 final.
akismet.diff (508 bytes) - added by nacin 2 years ago.
Possible Akismet hotfix.

Download all attachments as: .zip

Change History (11)

I think I found the problem

In 3.0.5 file wp-includes/default-filters.php line 35 looks like:

foreach ( array( 'term_description', 'link_description', 'link_notes', 'user_description', 'comment_text' ) as $filter ) {

Just removing bold text and "," before it fixes the bug.

3.0.4 has this line without 'comment_text' - and it was working fine.

  • Owner set to ryan
  • Status changed from new to reviewing

Related Changeset: [17400]

It's the difference in the surrounding code from [17192] to [17400] that bit us. We're looking at options.

nacin2 years ago

For the 3.0 branch with a new nightly.

nacin2 years ago

For 3.1 final.

nacin2 years ago

Possible Akismet hotfix.

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

(In [17421]) Only run kses on comment_text in the admin. Use wp_kses_post instead of wp_kses_data for a better balance between security and flexibility. fixes #16489 for the 3.0 branch.

(In [17422]) Use wp_kses_post instead of wp_kses_data for a better balance between security and flexibility. fixes #16489 for trunk.

(In [17423]) Use wp_kses_post instead of wp_kses_data for a better balance between security and flexibility. fixes #16489 for the 3.1 branch.

  • Milestone changed from Awaiting Review to 3.1
Note: See TracTickets for help on using tickets.