WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#6738 closed defect (bug) (fixed)

Fix double-slashing of comments done by wp_filter_kses

Reported by: filosofo Owned by: ryan
Milestone: 2.6 Priority: normal
Severity: normal Version:
Component: General Keywords: wp_filter_kses prepare slash
Focuses: Cc:

Description

wp_filter_kses adds slashes to comments. Strip them out before inserting or updating, and let the prepared queries handle it.

Attachments (1)

fix_double_comment_slashing.diff (703 bytes) - added by filosofo 6 years ago.

Download all attachments as: .zip

Change History (2)

comment:1 ryan6 years ago

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

(In [7690]) Strip slashes before preparing comment insert to avoid double-slashing. Props filosofo. fixes #6738

Note: See TracTickets for help on using tickets.