mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
the chmod change i already had within the changelog (by mistake). This should further secure writable directories and created files.
Installation need to be tested on different hosts. git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8763 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -228,7 +228,7 @@ class compress_zip extends compress
|
||||
{
|
||||
trigger_error("Could not create directory $folder");
|
||||
}
|
||||
@chmod($str, 0777);
|
||||
phpbb_chmod($str, 'rwrite');
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -257,7 +257,7 @@ class compress_zip extends compress
|
||||
{
|
||||
trigger_error("Could not create directory $folder");
|
||||
}
|
||||
@chmod($str, 0777);
|
||||
phpbb_chmod($str, 'rwrite');
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -544,7 +544,7 @@ class compress_tar extends compress
|
||||
{
|
||||
trigger_error("Could not create directory $folder");
|
||||
}
|
||||
@chmod($str, 0777);
|
||||
phpbb_chmod($str, 'rwrite');
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -571,7 +571,7 @@ class compress_tar extends compress
|
||||
{
|
||||
trigger_error("Could not create directory $folder");
|
||||
}
|
||||
@chmod($str, 0777);
|
||||
phpbb_chmod($str, 'rwrite');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -580,7 +580,7 @@ class compress_tar extends compress
|
||||
{
|
||||
trigger_error("Couldn't create file $filename");
|
||||
}
|
||||
@chmod($target_filename, 0777);
|
||||
phpbb_chmod($target_filename, 'rwrite');
|
||||
|
||||
// Grab the file contents
|
||||
fwrite($fp, ($filesize) ? $fzread($this->fp, ($filesize + 511) &~ 511) : '', $filesize);
|
||||
|
Reference in New Issue
Block a user