From c05b94e3b0e0c409a38dfcde32f413fdf4c086ab Mon Sep 17 00:00:00 2001 From: tianshujie Date: Mon, 7 Nov 2022 16:00:47 +0800 Subject: [PATCH] * Fix bug #29377. --- module/action/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/action/model.php b/module/action/model.php index 1d4df4b1aa..958a282827 100755 --- a/module/action/model.php +++ b/module/action/model.php @@ -575,7 +575,7 @@ class actionModel extends model if($history->field == 'git') $history->diff = str_replace('+', '%2B', $history->diff); } } - elseif(strpos('linkstory,unlinkstory,createchildrenstory', $actionName) !== false) + elseif(strpos(',linkstory,unlinkstory,createchildrenstory,', ",$actionName,") !== false) { $extra = ''; foreach(explode(',', $action->extra) as $id) $extra .= common::hasPriv('story', 'view') ? html::a(helper::createLink('story', 'view', "storyID=$id"), "#$id ") . ', ' : "#$id, ";