Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit b25639f37cf6551ae7413ac98171f179768d0272 1 parent 8844a89
Harald Ponce de Leon haraldpdl authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  osCommerce/OM/Core/Site/Admin/Language.php
2  osCommerce/OM/Core/Site/Admin/Language.php
View
@@ -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));
Please sign in to comment.
Something went wrong with that request. Please try again.