From 4409162eb7cbf290964a12298730a9ef28a45081 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Sun, 14 Nov 2021 22:53:10 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B02875=20-=20Fix=20mentions=20not=20workin?= =?UTF-8?q?g=20with=20some=20non=20url=20encoded=20"markers"=20(eg.=20'#')?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/utils.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/utils.inc.php b/application/utils.inc.php index f881ef0be7..de9425d576 100644 --- a/application/utils.inc.php +++ b/application/utils.inc.php @@ -2662,7 +2662,7 @@ class utils } // Note: Endpoints are defaults only and should be overloaded by other GUIs such as the end-users portal - $sMentionEndpoint = utils::GetAbsoluteUrlAppRoot().'pages/ajax.render.php?operation=cke_mentions&marker='.$sMentionMarker.'&needle={encodedQuery}'; + $sMentionEndpoint = utils::GetAbsoluteUrlAppRoot().'pages/ajax.render.php?operation=cke_mentions&marker='.urlencode($sMentionMarker).'&needle={encodedQuery}'; $sMentionItemUrl = utils::GetAbsoluteUrlAppRoot().'pages/UI.php?operation=details&class='.$sMentionClass.'&id={id}'; $sMentionItemPictureTemplate = (empty(MetaModel::GetImageAttributeCode($sMentionClass))) ? '' : <<