Browse code

implements #0000001

René Wagner authored on 30.09.2019 21:31:15
Showing 1 changed files

... ...
@@ -755,7 +755,7 @@ function update_db_file ($data)
755 755
 {
756 756
   global $vaultfname;
757 757
 
758
-  $tmp = tempnam (sys_get_temp_dir (), "simplevault");
758
+  $tmp = tempnam (dirname($vaultfname), "simplevault");
759 759
   if ($tmp === FALSE) {
760 760
     return FALSE;
761 761
   }