Skip to content

Commit 3b745e4

Browse files
committed
fix(comments): Links encodage (sbpp#1033)
1 parent 0688ab3 commit 3b745e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/pages/page.commslist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ function setPostKey()
761761
$coment['added'] = Config::time($cotherdata->fields['added']);
762762
$commentText = html_entity_decode($cotherdata->fields['commenttxt'], ENT_QUOTES | ENT_HTML5, 'UTF-8');
763763
$commentText = encodePreservingBr($commentText);
764-
$commentText = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="\$1" target="_blank">\$1</a>', $commentText);
764+
$commentText = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="$1" target="_blank">$1</a>', $commentText);
765765
$coment['commenttxt'] = $commentText;
766766
if ($cotherdata->fields['editname'] != "") {
767767
$coment['edittime'] = Config::time($cotherdata->fields['edittime']);

0 commit comments

Comments
 (0)