mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-09 09:27:03 +03:00
clearstatcache() for #1155
This commit is contained in:
parent
9eaa0f4eb5
commit
71a2b46d14
2 changed files with 2 additions and 2 deletions
|
|
@ -32,7 +32,6 @@ class TAR
|
|||
$files = '/^(' . \implode('|', \array_map('preg_quote', \is_array($files) ? $files : [$files])) . ')/u';
|
||||
}
|
||||
|
||||
\clearstatcache(false);
|
||||
\clearstatcache(true);
|
||||
while (!\gzeof($fp)) {
|
||||
$data = \gzread($fp, 512);
|
||||
|
|
|
|||
|
|
@ -227,6 +227,7 @@ abstract class Upgrade
|
|||
// Prevents Apache access error due to directories being 0700
|
||||
public static function fixPermissions($mode = 0755) : void
|
||||
{
|
||||
\clearstatcache(true);
|
||||
\umask(0022);
|
||||
$target = \rtrim(APP_INDEX_ROOT_PATH, '\\/');
|
||||
// Prevent Apache access error due to directories being 0700
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue