1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 19:44:09 +02:00

Related to Issue #3741 - Incorrect encoding of a plugin language file could cause json encoding to fail.

This commit is contained in:
Cameron
2020-03-24 13:57:05 -07:00
parent 6c242729b9
commit 852ab5a32f
4 changed files with 64 additions and 10 deletions

View File

@@ -759,6 +759,13 @@ class e_plugin
$cacheSet = e107::serialize($arr,'json');
if(empty($cacheSet))
{
$error = json_last_error_msg();
e107::getMessage()->addDebug("Plugin Cache JSON encoding is failing! (".__METHOD__.") Line: ".__LINE__);
e107::getMessage()->addDebug("JSON Error: ".$error);
}
e107::getCache()->set($cacheTag,$cacheSet,true,true,true);
$this->_data = $arr;