mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 13:30:25 +02:00
[bug/59135] Fix open_basedir issues when accessing styles- and language-management. (Bug #59135)
introduced in r10496 and r10360/r10361
This commit is contained in:
@@ -103,6 +103,7 @@
|
||||
<li>[Fix] Allow multibyte keys in request_var(). (Bug #51555)</li>
|
||||
<li>[Fix] Prevent wrong tar archive type detection. (Bug #12531)</li>
|
||||
<li>[Fix] Correct redirection after login to forum not in web root (Bug #58755)</li>
|
||||
<li>[Fix] Fix open_basedir issues when accessing styles- and language-management. (Bug #59135)</li>
|
||||
<li>[Feature] Support for Microsoft's Native SQL Server Driver for PHP (Bug #57055 - Patch by Chris Pucci at Microsoft)</li>
|
||||
</ul>
|
||||
|
||||
|
@@ -1120,12 +1120,12 @@ class acp_language
|
||||
{
|
||||
while (($file = readdir($dp)) !== false)
|
||||
{
|
||||
if (!is_dir($phpbb_root_path . 'language/' . $file))
|
||||
if ($file[0] == '.' || !is_dir($phpbb_root_path . 'language/' . $file))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($file[0] != '.' && file_exists("{$phpbb_root_path}language/$file/iso.txt"))
|
||||
if (file_exists("{$phpbb_root_path}language/$file/iso.txt"))
|
||||
{
|
||||
if (!in_array($file, $installed))
|
||||
{
|
||||
|
@@ -643,13 +643,13 @@ parse_css_file = {PARSE_CSS_FILE}
|
||||
{
|
||||
while (($file = readdir($dp)) !== false)
|
||||
{
|
||||
if (!is_dir($phpbb_root_path . 'styles/' . $file))
|
||||
if ($file[0] == '.' || !is_dir($phpbb_root_path . 'styles/' . $file))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$subpath = ($mode != 'style') ? "$mode/" : '';
|
||||
if ($file[0] != '.' && file_exists("{$phpbb_root_path}styles/$file/$subpath$mode.cfg"))
|
||||
if (file_exists("{$phpbb_root_path}styles/$file/$subpath$mode.cfg"))
|
||||
{
|
||||
if ($cfg = file("{$phpbb_root_path}styles/$file/$subpath$mode.cfg"))
|
||||
{
|
||||
|
Reference in New Issue
Block a user