Make WordPress Core

Ticket #57482: 57482.2.patch

File 57482.2.patch, 1.4 KB (added by upadalavipul, 18 months ago)
  • wp-includes/SimplePie/HTTP/Parser.php

     
    483483                        }
    484484
    485485                        $chunk_length = strlen($matches[0]);
    486                         $decoded .= $part = substr($encoded, $chunk_length, $length);
     486                        $decoded .= substr($encoded, $chunk_length, $length);
    487487                        $encoded = substr($encoded, $chunk_length + $length + 2);
    488488
    489489                        if (trim($encoded) === '0' || empty($encoded))
  • wp-includes/SimplePie/Locator.php

     
    413413                        if (preg_match('/(feed|rss|rdf|atom|xml)/i', $value))
    414414                        {
    415415                                $this->checked_feeds++;
    416                                 $headers = array(
    417                                         'Accept' => 'application/atom+xml, application/rss+xml, application/rdf+xml;q=0.9, application/xml;q=0.8, text/xml;q=0.8, text/html;q=0.7, unknown/unknown;q=0.1, application/unknown;q=0.1, */*;q=0.1',
    418                                 );
     416                               
    419417                                $feed = $this->registry->create('File', array($value, $this->timeout, 5, null, $this->useragent, $this->force_fsockopen, $this->curl_options));
    420418                                if ($feed->success && ($feed->method & SIMPLEPIE_FILE_SOURCE_REMOTE === 0 || ($feed->status_code === 200 || $feed->status_code > 206 && $feed->status_code < 300)) && $this->is_feed($feed))
    421419                                {