Skip to content

Commit

Permalink
Use 0755 instead of 0775. Closes #50
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswsinc committed Mar 21, 2015
1 parent 53a8f5a commit 892de3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html-compressor/includes/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -2333,7 +2333,7 @@ protected function cache_dir($type, $checksum = '', $base_only = FALSE)
$dir .= '/'.trim(preg_replace('/[^a-z0-9\-]/i', '-', $this->current_url_host()), '-');
$dir .= $checksum ? '/'.implode('/', str_split($checksum)) : '';
}
if(!is_dir($dir) && mkdir($dir, 0775, TRUE)) // New directory?
if(!is_dir($dir) && mkdir($dir, 0755, TRUE)) // New directory?
{
if($type === $this::dir_public_type && !is_file($basedir.'/.htaccess'))
if(!file_put_contents($basedir.'/.htaccess', $this->dir_htaccess_allow)) // Configure public directory.
Expand Down

0 comments on commit 892de3d

Please sign in to comment.