From b3c7bc983655ff0cd06f92b800d8f76510a146f8 Mon Sep 17 00:00:00 2001 From: Koldo Picaza <1093654+kpicaza@users.noreply.github.com> Date: Mon, 29 Nov 2021 14:18:12 +0100 Subject: [PATCH] MDI-1439: set addo cache dir default as if safe mode disabled --- src/adodb5/adodb.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/adodb5/adodb.inc.php b/src/adodb5/adodb.inc.php index d8f3e940..ec66fb5a 100644 --- a/src/adodb5/adodb.inc.php +++ b/src/adodb5/adodb.inc.php @@ -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