Update Kohana to 3.1.3.1
This commit is contained in:
@@ -138,7 +138,7 @@ abstract class Kohana_Cache {
|
||||
}
|
||||
|
||||
/**
|
||||
* @var Kohana_Config
|
||||
* @var Config
|
||||
*/
|
||||
protected $_config;
|
||||
|
||||
|
@@ -71,7 +71,9 @@ class Kohana_Cache_Apc extends Cache {
|
||||
*/
|
||||
public function get($id, $default = NULL)
|
||||
{
|
||||
return (($data = apc_fetch($this->_sanitize_id($id))) === FALSE) ? $default : $data;
|
||||
$data = apc_fetch($this->_sanitize_id($id), $success);
|
||||
|
||||
return $success ? $data : $default;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -373,7 +373,7 @@ class Kohana_Cache_File extends Cache implements Kohana_Cache_GarbageCollect {
|
||||
$name = $files->getFilename();
|
||||
|
||||
// If the name is not a dot
|
||||
if ($name != '.' and $name != '..')
|
||||
if ($name != '.' AND $name != '..' AND substr($file->getFilename(), 0, 1) == '.')
|
||||
{
|
||||
// Create new file resource
|
||||
$fp = new SplFileInfo($files->getRealPath());
|
||||
|
Reference in New Issue
Block a user