[wp-trac] [WordPress Trac] #47164: map_deep in formatting.php do not handle null-byte
    WordPress Trac 
    noreply at wordpress.org
       
    Mon Sep 16 11:22:37 UTC 2019
    
    
  
#47164: map_deep in formatting.php do not handle null-byte
--------------------------+-----------------------------
 Reporter:  bitcomplex    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Formatting    |     Version:  5.2.2
 Severity:  critical      |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+-----------------------------
Changes (by SergeyBiryukov):
 * keywords:   => needs-patch
 * milestone:  Awaiting Review => Future Release
Comment:
 Hi @bitcomplex, welcome to WordPress Trac! Thanks for the report.
 Just noting that I was able to reproduce the fatal error with this code:
 {{{
 class Dummy {
     public $pub = 0;
     protected $prot = 1;
     private $priv = 2;
 }
 $test = (object) (array) new Dummy();
 $test = stripslashes_deep( $test );
 }}}
-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47164#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list