From 3b745e48fbbd3a4e2365cbaf6ceb7cf08980ddb0 Mon Sep 17 00:00:00 2001
From: geominorai <13911156+geominorai@users.noreply.github.com>
Date: Sun, 4 May 2025 02:40:30 -0700
Subject: [PATCH] fix(comments): Links encodage (#1033)
---
web/pages/page.commslist.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/pages/page.commslist.php b/web/pages/page.commslist.php
index 2e32945e..453313b2 100644
--- a/web/pages/page.commslist.php
+++ b/web/pages/page.commslist.php
@@ -761,7 +761,7 @@ function setPostKey()
$coment['added'] = Config::time($cotherdata->fields['added']);
$commentText = html_entity_decode($cotherdata->fields['commenttxt'], ENT_QUOTES | ENT_HTML5, 'UTF-8');
$commentText = encodePreservingBr($commentText);
- $commentText = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '\$1', $commentText);
+ $commentText = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '$1', $commentText);
$coment['commenttxt'] = $commentText;
if ($cotherdata->fields['editname'] != "") {
$coment['edittime'] = Config::time($cotherdata->fields['edittime']);