Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #352 from Alkarex/strtoupper_charset

[FreshRSS] Case insensitive charsets
  • Loading branch information...
commit 9a9faaa0d563426cf6d897c169373c5b62f1b252 2 parents 5f00e77 + 43b1018
@rmccue rmccue authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 library/SimplePie.php
View
4 library/SimplePie.php
@@ -1306,7 +1306,7 @@ public function init()
// First check to see if input has been overridden.
if ($this->input_encoding !== false)
{
- $encodings[] = $this->input_encoding;
+ $encodings[] = strtoupper($this->input_encoding);
}
$application_types = array('application/xml', 'application/xml-dtd', 'application/xml-external-parsed-entity');
@@ -1328,7 +1328,7 @@ public function init()
{
if (isset($headers['content-type']) && preg_match('/;\x20?charset=([^;]*)/i', $headers['content-type'], $charset))
{
- $encodings[] = $charset[1];
+ $encodings[] = strtoupper($charset[1]);
}
$encodings[] = 'US-ASCII';
}
Please sign in to comment.
Something went wrong with that request. Please try again.