From 9108d33034ba59587ee7b505051570262098d926 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Thu, 20 Jun 2024 13:36:50 +0900 Subject: [PATCH] Fix #2369 double decoding of notify data --- modules/ncenterlite/ncenterlite.model.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/ncenterlite/ncenterlite.model.php b/modules/ncenterlite/ncenterlite.model.php index dfbe36843..d8bfcf678 100644 --- a/modules/ncenterlite/ncenterlite.model.php +++ b/modules/ncenterlite/ncenterlite.model.php @@ -281,7 +281,14 @@ class NcenterliteModel extends Ncenterlite $v->text = $this->getNotificationText($v); $v->ago = $this->getAgo($v->regdate); $v->url = getUrl('','act','procNcenterliteRedirect', 'notify', $v->notify); - $v->data = isset($v->data) ? unserialize($v->data) : []; + if (isset($v->data)) + { + $v->data = is_string($v->data) ? unserialize($v->data) : $v->data; + } + else + { + $v->data = []; + } if($v->target_member_srl < 0) {