From 53d367796762e649491c41baf0e63ffa4a2cd8a7 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Wed, 14 Jan 2009 21:55:29 +0000 Subject: [PATCH] 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 --- functions/abook_local_file.php | 1 + 1 file changed, 1 insertion(+) 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; -- 2.25.1