Ticket #57482: 57482.2.patch
File 57482.2.patch, 1.4 KB (added by , 18 months ago) |
---|
-
wp-includes/SimplePie/HTTP/Parser.php
483 483 } 484 484 485 485 $chunk_length = strlen($matches[0]); 486 $decoded .= $part =substr($encoded, $chunk_length, $length);486 $decoded .= substr($encoded, $chunk_length, $length); 487 487 $encoded = substr($encoded, $chunk_length + $length + 2); 488 488 489 489 if (trim($encoded) === '0' || empty($encoded)) -
wp-includes/SimplePie/Locator.php
413 413 if (preg_match('/(feed|rss|rdf|atom|xml)/i', $value)) 414 414 { 415 415 $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 419 417 $feed = $this->registry->create('File', array($value, $this->timeout, 5, null, $this->useragent, $this->force_fsockopen, $this->curl_options)); 420 418 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)) 421 419 {