Skip to content

Commit

Permalink
Revert restore.php
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkyKZ committed Aug 6, 2019
1 parent c37a84e commit 06af3b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions administrator/components/com_joomlaupdate/restore.php
Expand Up @@ -6184,7 +6184,7 @@ public static function parse_ini_file($file, $process_sections = false, $raw_dat
}

// Sections
if ($line[0] == '[')
if ($line{0} == '[')
{
$tmp = explode(']', $line);
$sections[] = trim(substr($tmp[0], 1));
Expand All @@ -6201,7 +6201,7 @@ public static function parse_ini_file($file, $process_sections = false, $raw_dat
$tmp = explode(';', $value);
if (count($tmp) == 2)
{
if ((($value[0] != '"') && ($value[0] != "'")) ||
if ((($value{0} != '"') && ($value{0} != "'")) ||
preg_match('/^".*"\s*;/', $value) || preg_match('/^".*;[^"]*$/', $value) ||
preg_match("/^'.*'\s*;/", $value) || preg_match("/^'.*;[^']*$/", $value)
)
Expand All @@ -6211,11 +6211,11 @@ public static function parse_ini_file($file, $process_sections = false, $raw_dat
}
else
{
if ($value[0] == '"')
if ($value{0} == '"')
{
$value = preg_replace('/^"(.*)".*/', '$1', $value);
}
elseif ($value[0] == "'")
elseif ($value{0} == "'")
{
$value = preg_replace("/^'(.*)'.*/", '$1', $value);
}
Expand Down

0 comments on commit 06af3b0

Please sign in to comment.