From 892de3d6ee1a00a3632a3f5cecf1d9c70ae48793 Mon Sep 17 00:00:00 2001 From: jaswsinc Date: Sat, 21 Mar 2015 09:08:00 -0800 Subject: [PATCH] Use `0755` instead of `0775`. Closes https://github.com/websharks/html-compressor/issues/50 --- html-compressor/includes/core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html-compressor/includes/core.php b/html-compressor/includes/core.php index 3ee7262..a8657a5 100644 --- a/html-compressor/includes/core.php +++ b/html-compressor/includes/core.php @@ -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.