Sfoglia il codice sorgente

Set more restrictive permissions on abook files - matches how pref files are treated. Thanks to 'Lampa' for the pointer.

pdontthink 16 anni fa
parent
commit
b9c6b56944
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      functions/abook_local_file.php

+ 1 - 0
functions/abook_local_file.php

@@ -252,6 +252,7 @@ class abook_local_file extends addressbook_backend {
           return $this->set_error($this->filename . ':' . _("Unable to update"));
         }
         @unlink($this->filename . '.tmp');
+        @chmod($this->filename, 0600);
         $this->unlock();
         $this->open(true);
         return true;