summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2019-10-21 10:18:12 +0200
committerAndrey Andreev <narf@devilix.net>2019-10-21 10:18:12 +0200
commit6fd8d3f5180700e9b288d2d8446b5e09413c6230 (patch)
tree35990803bfcedce6b7e1b355cad72d8c96227a6b /system
parent35d419deb4974a2dde82e294eddb5ea943c3b313 (diff)
[ci skip] Fix #5857
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Session/drivers/Session_files_driver.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/system/libraries/Session/drivers/Session_files_driver.php b/system/libraries/Session/drivers/Session_files_driver.php
index 2899b7dec..d9966273b 100644
--- a/system/libraries/Session/drivers/Session_files_driver.php
+++ b/system/libraries/Session/drivers/Session_files_driver.php
@@ -196,6 +196,10 @@ class CI_Session_files_driver extends CI_Session_driver implements SessionHandle
$this->_fingerprint = md5('');
return '';
}
+
+ // Prevent possible data corruption
+ // See https://github.com/bcit-ci/CodeIgniter/issues/5857
+ clearstatcache(TRUE, $this->_file_path.$session_id);
}
// We shouldn't need this, but apparently we do ...
// See https://github.com/bcit-ci/CodeIgniter/issues/4039