aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_compress.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions_compress.php')
-rw-r--r--phpBB/includes/functions_compress.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/includes/functions_compress.php b/phpBB/includes/functions_compress.php
index 021079deef..18106a155b 100644
--- a/phpBB/includes/functions_compress.php
+++ b/phpBB/includes/functions_compress.php
@@ -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);