mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Set profanity list limit to 1000. (Could reduce performance)
Fix for comment template. Prevent secureImage from buffering too many keys.
This commit is contained in:
@@ -397,7 +397,29 @@ class e_session
|
||||
$this->_data = array(); // must be set to array() not unset.
|
||||
}
|
||||
|
||||
unset($this->_data[$key]);
|
||||
if(strpos($key,'/') !== false) // multi-dimensional
|
||||
{
|
||||
$keyArr = explode('/',$key);
|
||||
$count = count($keyArr);
|
||||
|
||||
if($count === 2)
|
||||
{
|
||||
list($k1, $k2) = $keyArr;
|
||||
unset($this->_data[$k1][$k2]);
|
||||
}
|
||||
elseif($count === 3)
|
||||
{
|
||||
list($k1, $k2, $k3) = $keyArr;
|
||||
unset($this->_data[$k1][$k2][$k3]);
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
unset($this->_data[$key]);
|
||||
}
|
||||
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user