Преглед на файлове

Merge pull request #95 from elrido/rugk-permissions

Set permissions when saving files
El RIDO преди 10 години
родител
ревизия
46d32948f1
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      lib/persistence.php

+ 1 - 0
lib/persistence.php

@@ -119,6 +119,7 @@ abstract class persistence
         if ($writtenBytes === false || $writtenBytes < strlen($data)) {
             throw new Exception('unable to write to file ' . $file, 13);
         }
+        @chmod($file, 0640); // protect file access
         return $file;
     }
 }