mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-03-22 13:10:41 +08:00
Prevent inconstitent /data/trafic_limiter.php due to file read while writing
(cherry picked from commit 71a7f6adaea9a86a84fa8ebbcb9e5c506a785527) Conflicts: index.php
This commit is contained in:
parent
5b54ca34ad
commit
4f72f04eda
|
@ -105,7 +105,7 @@ abstract class persistence
|
||||||
{
|
{
|
||||||
self::_initialize();
|
self::_initialize();
|
||||||
$file = self::$_path . '/' . $filename;
|
$file = self::$_path . '/' . $filename;
|
||||||
file_put_contents($file, $data);
|
file_put_contents($file, $data, LOCK_EX);
|
||||||
chmod($file, 0705);
|
chmod($file, 0705);
|
||||||
return $file;
|
return $file;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user