I needed to parse arrays with mixed case keys like 'someKey', so I wrote a patch that has a setting for that on the parser. It still defaults to not tolerating uppercase in the array keys.

CommentFileSizeAuthor
mixed_case.patch1.71 KBnaxoc

Comments

Anonymous’s picture

Hm, I'm not getting you here, all this does is unserialize an array and run the keys through check_plain, the parser is agnostic about case. Could the issue instead be an issue with your processor?

naxoc’s picture

return parent::getSourceElement($source, $result, drupal_strtolower($element_key));

If I remove the drupal_strtolower I can use mixed case array keys. I'm not sure why it is there in the first place?

avpaderno’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

The user who created this project deleted the account. This project is unsupported.