git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@15955 44c647ce-9c0f-0410-b52a-842ac1e357ba
@@ -183,7 +183,9 @@ class Zend_Cache_Backend
if ($tempFile) {
$dir = realpath(dirname($tempFile));
unlink($tempFile);
- return $dir;
+ if ($this->_isGoodTmpDir($dir)) {
+ return $dir;
+ }
}
if ($this->_isGoodTmpDir('/tmp')) {
return '/tmp';