projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Fixed the Filters plugin to allow commas in filter criteria text
[squirrelmail.git]
/
functions
/
abook_local_file.php
diff --git
a/functions/abook_local_file.php
b/functions/abook_local_file.php
index 22a7932b6b275b574c8e933637aa8e9a9b0b4776..1c1901f7a2e8fe92439ada1241416e7516d744b6 100644
(file)
--- a/
functions/abook_local_file.php
+++ b/
functions/abook_local_file.php
@@
-3,7
+3,7
@@
/**
* abook_local_file.php
*
/**
* abook_local_file.php
*
- * @copyright © 1999-200
7
The SquirrelMail Project Team
+ * @copyright © 1999-200
9
The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
@@
-151,7
+151,7
@@
class abook_local_file extends addressbook_backend {
$this->error = '';
$file = $this->filename;
$create = $this->create;
$this->error = '';
$file = $this->filename;
$create = $this->create;
- $fopenmode = (($this->writeable && is_writable($file)) ? 'a+' : 'r');
+ $fopenmode = (($this->writeable &&
sq_
is_writable($file)) ? 'a+' : 'r');
/* Return true is file is open and $new is unset */
if($this->filehandle && !$new) {
/* Return true is file is open and $new is unset */
if($this->filehandle && !$new) {
@@
-252,6
+252,7
@@
class abook_local_file extends addressbook_backend {
return $this->set_error($this->filename . ':' . _("Unable to update"));
}
@unlink($this->filename . '.tmp');
return $this->set_error($this->filename . ':' . _("Unable to update"));
}
@unlink($this->filename . '.tmp');
+ @chmod($this->filename, 0600);
$this->unlock();
$this->open(true);
return true;
$this->unlock();
$this->open(true);
return true;