Skip to content

Commit

Permalink
removing open_basedir ... I hope
Browse files Browse the repository at this point in the history
  • Loading branch information
Radek-Suski committed Mar 3, 2016
1 parent 77141d4 commit 513a2be
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions administrator/components/com_admin/models/sysinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,7 @@ protected function cleanPrivateData($dataArray, $dataType = 'other')

if (in_array($section, $privateSettings, true))
{
if(is_string($values) && strstr($values, JPATH_ROOT))
{
$dataArray[$section] = 'xxxxxx';
}
else
{
$dataArray[$section] = $this->cleanSectionPrivateData($values);
}
$dataArray[$section] = $this->cleanSectionPrivateData($values);
}
}

Expand All @@ -210,6 +203,10 @@ protected function cleanSectionPrivateData($sectionValues)
{
if (!is_array($sectionValues))
{
if (strstr($sectionValues, JPATH_ROOT))
{
$sectionValues = 'xxxxxx';
}
return strlen($sectionValues) ? 'xxxxxx' : '';
}

Expand Down Expand Up @@ -334,7 +331,7 @@ public function phpinfoEnabled()
* Method to get filter data from the model
*
* @param string $dataType Type of data to get safely
* @param bool $public
* @param bool $public
*
* @return array
*
Expand Down Expand Up @@ -493,7 +490,7 @@ public function getExtensions()
/**
* Method to get the directory states
*
* @param $public - if true no information is going to be removed
* @param $public - if true no information is going to be removed
* @return array States of directories
*
* @since 1.6
Expand Down

0 comments on commit 513a2be

Please sign in to comment.