Procházet zdrojové kódy

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

pdontthink před 16 roky
rodič
revize
b9c6b56944
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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"));
           return $this->set_error($this->filename . ':' . _("Unable to update"));
         }
         }
         @unlink($this->filename . '.tmp');
         @unlink($this->filename . '.tmp');
+        @chmod($this->filename, 0600);
         $this->unlock();
         $this->unlock();
         $this->open(true);
         $this->open(true);
         return true;
         return true;