Browse files

Don't freak out when a multi line definition contains an = sign

  • Loading branch information...
1 parent 8844a89 commit b25639f37cf6551ae7413ac98171f179768d0272 @haraldpdl haraldpdl committed Feb 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 osCommerce/OM/Core/Site/Admin/Language.php
View
2 osCommerce/OM/Core/Site/Admin/Language.php
@@ -67,7 +67,7 @@ public function loadIniFile($filename = null, $comment = '#', $language_code = n
if ( !empty($line) && ( $firstchar != $comment) ) {
$delimiter = strpos($line, '=');
- if ( $delimiter !== false ) {
+ if ( ($delimiter !== false) && ( substr_count(substr($line, 0, $delimiter), ' ') == 1 ) ) {
$key = trim(substr($line, 0, $delimiter));
$value = trim(substr($line, $delimiter + 1));

0 comments on commit b25639f

Please sign in to comment.