Skip to content
Snippets Groups Projects
Commit 6bb76322 authored by Alex Barth's avatar Alex Barth
Browse files

#754938 Monkey Master: FeedsCSVParser.inc uses strtolower() while parsing UTF-8 files.

parent 5ab19479
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,8 @@
Feeds 6.x 1.0 xxxxx xx, 2010-xx-xx
----------------------------------
- #754938 Monkey Master: FeedsCSVParser.inc uses strtolower() while parsing
UTF-8 files.
- #736684 Souvent22, Mixologic: FeedsDateTime & Batch DateTime causes core
dumps.
- #750168 jtr: _parser_common_syndication_title does not strip html tags before
......
......@@ -25,7 +25,7 @@ class FeedsCSVParser extends FeedsParser {
// @todo Push this functionality into ParserCSV.
$header = array_shift($rows);
foreach ($header as $i => $title) {
$header[$i] = strtolower($title); // Use lower case only.
$header[$i] = drupal_strtolower($title); // Use lower case only.
}
$result_rows = array();
foreach ($rows as $i => $row) {
......@@ -45,7 +45,7 @@ class FeedsCSVParser extends FeedsParser {
* Override parent::getSourceElement() to use only lower keys.
*/
public function getSourceElement($item, $element_key) {
$element_key = strtolower($element_key);
$element_key = drupal_strtolower($element_key);
return isset($item[$element_key]) ? $item[$element_key] : '';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment