mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
modifying cache file engine, to match file class changes.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7830 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
22143dbbed
commit
0ed0eea73b
1 changed files with 4 additions and 1 deletions
5
cake/libs/cache/file.php
vendored
5
cake/libs/cache/file.php
vendored
|
@ -243,7 +243,10 @@ class FileEngine extends CacheEngine {
|
|||
*/
|
||||
function __setKey($key) {
|
||||
$this->__File->Folder->cd($this->settings['path']);
|
||||
$this->__File->name = $key;
|
||||
if ($key !== $this->__File->name) {
|
||||
$this->__File->name = $key;
|
||||
$this->__File->path = null;
|
||||
}
|
||||
if (!$this->__File->Folder->inPath($this->__File->pwd(), true)) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue