1
0
mirror of synced 2024-12-13 22:56:04 +03:00

Merge branch 'DDC-1735'

This commit is contained in:
Benjamin Eberlei 2012-07-05 22:20:28 +02:00
commit 0a95e42ea8

View File

@ -190,7 +190,9 @@ class ProxyFactory
throw ProxyException::proxyDirectoryNotWritable();
}
file_put_contents($fileName, $file, LOCK_EX);
$tmpFileName = $fileName . '.' . uniqid("", true);
file_put_contents($tmpFileName, $file);
rename($tmpFileName, $fileName);
}
/**