We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 936f634 commit 9b6e5c6Copy full SHA for 9b6e5c6
1 file changed
lib/private/Config.php
@@ -285,6 +285,12 @@ private function writeData() {
285
'This can usually be fixed by giving the webserver write access to the config directory.');
286
}
287
288
+ // Never write file back if disk space should be low (less than 100 KiB)
289
+ $df = disk_free_space($this->configDir);
290
+ if ($df !== false && (int)$df < 102400) {
291
+ throw new \Exception($this->configDir . " does not have enough space for writing the config file! Not writing it back!");
292
+ }
293
+
294
// Try to acquire a file lock
295
if (!flock($filePointer, LOCK_EX)) {
296
throw new \Exception(sprintf('Could not acquire an exclusive lock on the config file %s', $this->configFilePath));
0 commit comments