Set more restrictive permissions on abook files - matches how pref files are treated...
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 14 Jan 2009 21:55:29 +0000 (21:55 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 14 Jan 2009 21:55:29 +0000 (21:55 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13391 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/abook_local_file.php

index d29474f..fc05257 100644 (file)
@@ -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;