diff --git a/src/Drivers/FileSystem.php b/src/Drivers/FileSystem.php index 51e088d..cd826ba 100644 --- a/src/Drivers/FileSystem.php +++ b/src/Drivers/FileSystem.php @@ -268,8 +268,8 @@ public function get($key, $default = null) if (isset($match_data_type[1])) { $data_type = $match_data_type[1]; } - if (isset($match_data[1])) { - $data = unserialize($match_data[1]); + if (isset($match_data[1]) && is_scalar($match_data[1])) { + $data = unserialize(trim($match_data[1])); } unset($match_data, $match_data_type, $match_lifetime); }