The browscap file as downloaded from browser.garykeith.com has semicolon (;) and single-quote (') characters in the section strings, either of which will cause parse_ini_file() to abort and return FALSE.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 107762.patch | 706 bytes | pillarsdotnet |
Comments
Comment #1
pillarsdotnet commentedWhen I contacted Gary Keith regarding this issue, he replied as follows:
Comment #2
pillarsdotnet commentedA simple workaround is to simply backslash-escape the offending characters.
Comment #3
pillarsdotnet commentedUpgrading to critical because without this change, the whole module is basically useless.
Comment #4
gregglesI changed this just to add a single space after the commas in the function arguments per Drupal coding style.
7.x-1.x http://drupal.org/commitlog/commit/890/fdd70223e6aedf03fc718d10e3e9b2f16...
6.x-1.x http://drupal.org/commitlog/commit/890/9d1156007b6e71c5928bff2c1b090104f...
Thanks, pillarsdotnet!