Skip to content

Commit b6caf50

Browse files
authored
Fix file write permission
1 parent 6bddf17 commit b6caf50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Drivers/File.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function set(string $key, $value, ?int $ttl = 300)
7878

7979
if ($this->write_file($this->file_path.$key, serialize($contents)))
8080
{
81-
chmod($this->file_path.$key, 0640);
81+
chmod($this->file_path.$key, 0755);
8282
return TRUE;
8383
}
8484

@@ -253,4 +253,4 @@ private function delete_files($path, $del_dir = FALSE, $htdocs = FALSE, $_level
253253
? @rmdir($path)
254254
: TRUE;
255255
}
256-
}
256+
}

0 commit comments

Comments
 (0)