diff options
author | FireFox <github@firefox.info> | 2014-01-03 11:17:15 +0100 |
---|---|---|
committer | FireFox <github@firefox.info> | 2014-01-03 11:17:15 +0100 |
commit | b5c1ed12273d72888b443e801123252d92f8c8ec (patch) | |
tree | 20e52ee962c4bb87d3eafa3dbdb7376617e321a0 /inc/poche/pochePictures.php | |
parent | 2eb111a300c481bbbf0a00eedec1db99253b4d0a (diff) | |
download | wallabag-b5c1ed12273d72888b443e801123252d92f8c8ec.tar.gz wallabag-b5c1ed12273d72888b443e801123252d92f8c8ec.tar.zst wallabag-b5c1ed12273d72888b443e801123252d92f8c8ec.zip |
Change Permissions in pochePictures.php
Stored Pictures are not accessible (on my server), when permission is set to 0705, but instead, when using 0755 (or for example to 0715) all is working as expected. So maybe it would be good, considering in changing the permission of created directories in the assets directory
Diffstat (limited to 'inc/poche/pochePictures.php')
-rw-r--r-- | inc/poche/pochePictures.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/poche/pochePictures.php b/inc/poche/pochePictures.php index 4e4a0b08..b0cfb9df 100644 --- a/inc/poche/pochePictures.php +++ b/inc/poche/pochePictures.php | |||
@@ -84,12 +84,12 @@ function create_assets_directory($id) | |||
84 | { | 84 | { |
85 | $assets_path = ABS_PATH; | 85 | $assets_path = ABS_PATH; |
86 | if(!is_dir($assets_path)) { | 86 | if(!is_dir($assets_path)) { |
87 | mkdir($assets_path, 0705); | 87 | mkdir($assets_path, 0715); |
88 | } | 88 | } |
89 | 89 | ||
90 | $article_directory = $assets_path . $id; | 90 | $article_directory = $assets_path . $id; |
91 | if(!is_dir($article_directory)) { | 91 | if(!is_dir($article_directory)) { |
92 | mkdir($article_directory, 0705); | 92 | mkdir($article_directory, 0715); |
93 | } | 93 | } |
94 | 94 | ||
95 | return $article_directory; | 95 | return $article_directory; |
@@ -107,4 +107,4 @@ function remove_directory($directory) | |||
107 | } | 107 | } |
108 | return rmdir($directory); | 108 | return rmdir($directory); |
109 | } | 109 | } |
110 | } \ No newline at end of file | 110 | } |