Skip to content

Commit

Permalink
MDI-1439: set addo cache dir default as if safe mode disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
kpicaza committed Nov 29, 2021
1 parent a0c6fac commit 6d96f71
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/adodb5/adodb.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,7 @@ function flushcache($f, $debug=false)
function getdirname($hash)
{
global $ADODB_CACHE_DIR;
if (!isset($this->notSafeMode)) $this->notSafeMode = !ini_get('safe_mode');
return ($this->notSafeMode) ? $ADODB_CACHE_DIR.'/'.substr($hash,0,2) : $ADODB_CACHE_DIR;
return $ADODB_CACHE_DIR.'/'.substr($hash,0,2);
}

// create temp directories
Expand Down

0 comments on commit 6d96f71

Please sign in to comment.