Ticket #5915: pop3.zerostrip.patch

File pop3.zerostrip.patch, 582 bytes (added by t.baboon, 4 years ago)
  • wp-includes/class-pop3.php

     
    628628        for($count =0; $count < $length; $count++) 
    629629        { 
    630630            $digit = substr($server_text,$count,1); 
    631             if(!empty($digit))             { 
     631            if( ($digit != '') and ($digit != chr(0)) ) 
     632            { 
    632633                if( (!$outside) && ($digit != '<') && ($digit != '>') ) 
    633634                { 
    634635                    $banner .= $digit;