From: pdontthink Date: Wed, 14 Jan 2009 21:55:29 +0000 (+0000) Subject: Set more restrictive permissions on abook files - matches how pref files are treated... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=53d367796762e649491c41baf0e63ffa4a2cd8a7;p=squirrelmail.git Set more restrictive permissions on abook files - matches how pref files are treated. Thanks to 'Lampa' for the pointer. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13391 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/abook_local_file.php b/functions/abook_local_file.php index d29474f6..fc05257a 100644 --- a/functions/abook_local_file.php +++ b/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;