[wp-trac] [WordPress Trac] #27260: Double-unslashing in "nopriv" handler of the Heartbeat API

WordPress Trac noreply at wordpress.org
Thu Mar 6 08:52:04 UTC 2014


#27260: Double-unslashing in "nopriv" handler of the Heartbeat API
-------------------------------------+------------------
 Reporter:  TobiasBg                 |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  3.9
Component:  Autosave                 |     Version:  3.6
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+------------------
Changes (by TobiasBg):

 * keywords:  has-patch commit => has-patch needs-testing


Comment:

 Argh, why do I always have `wp_magic_quotes()` backwards in my head?
 Wishful thinking? Are slashes slashing my brain? (Bad puns are on me.)

 My patch doesn't make sense then, of course, as filters hooking into
 `heartbeat_received` would have to do the unslashing themselves.

 johnbillion's patch looks sane.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27260#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list