Browse Source

Error catching on failure & update ChangeLog

Thijs Kinkhorst 23 years ago
parent
commit
d77bd47504
2 changed files with 8 additions and 2 deletions
  1. 4 0
      ChangeLog
  2. 4 2
      functions/abook_local_file.php

+ 4 - 0
ChangeLog

@@ -9,6 +9,10 @@ Version 1.3.2 -- cvs
   - Remove NOOP checks in the POP3 client of mail_fetch to make things more
     compatible and not break things which don't need to be broken.
   - Fix src directory being moved on Windows systems, bugs #586518 #605256 #610676.
+  - This release is compatible with installations that have register_globals set to off.
+  - Do not lose user prefs/sigs/abooks when trying to save to a full disk.
+  - Make the SquirrelMail link on the right top configurable so a provider can point
+    to their own FAQ for example.
 
 Version 1.3.1
 -------------

+ 4 - 2
functions/abook_local_file.php

@@ -150,8 +150,10 @@ class abook_local_file extends addressbook_backend {
         }       
 
         fclose($newfh);
-        copy( $this->filename .'.tmp' , $this->filename);
-        unlink( $this->filename .'.tmp');
+        if (!@copy($this->filename . '.tmp' , $this->filename)) {
+            return $this->set_error($file->filename.':' . _("Unable to update"));
+        }
+        @unlink( $this->filename .'.tmp');
         $this->unlock();
         $this->open(true);
         return true;