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 d29474f6d4cdd8cae463283e6bb53af96d9cc88f..fc05257a4231685866cbc4b3d66dfeb730859381 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;