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

Opened 3 years ago

Last modified 3 years ago

Post meta escaped incorrectly

Reported by: DD32 Owned by: anonymous
Priority: normal Milestone: 2.7
Component: General Version: 2.6.1
Severity: normal Keywords: has-patch commit
Cc:

Description

As raised by Rick Beckman on wp-hackers, " and ' are double escaped upon adding post meta.

wpdb::escape() is being called on the metadata twice. See the attached patch

Attachments

7768.diff Download (2.3 KB) - added by DD32 3 years ago.

Change History

DD323 years ago

Thanks for getting this added so quickly, DD32!

I applied this patch to my 2.6.2 installation, and it works perfectly.

comment:2   DD323 years ago

  • Keywords commit added
  • Status changed from new to closed
  • Resolution set to fixed

(In [9116]) Fix escaping of post meta, props DD32, fixes #7768

Note: See TracTickets for help on using tickets.