Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions web/pages/admin.bans.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
$cdata['added'] = Config::time($commentres->fields['added']);
$commentText = html_entity_decode($commentres->fields['commenttxt'], ENT_QUOTES | ENT_HTML5, 'UTF-8');
$commentText = encodePreservingBr($commentText);
$commentText = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="\$1" target="_blank">\$1</a>', $commentText);
$commentText = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="$1" target="_blank">$1</a>', $commentText);
$cdata['commenttxt'] = $commentText;

if (!empty($commentres->fields['edittime'])) {
Expand Down Expand Up @@ -404,7 +404,7 @@
$cdata['added'] = Config::time($commentres->fields['added']);
$commentText = html_entity_decode($commentres->fields['commenttxt'], ENT_QUOTES | ENT_HTML5, 'UTF-8');
$commentText = encodePreservingBr($commentText);
$commentText = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="\$1" target="_blank">\$1</a>', $commentText);
$commentText = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="$1" target="_blank">$1</a>', $commentText);
$cdata['commenttxt'] = $commentText;

if (!empty($commentres->fields['edittime'])) {
Expand Down Expand Up @@ -561,7 +561,7 @@
$commentText = html_entity_decode($commentres->fields['commenttxt'], ENT_QUOTES | ENT_HTML5, 'UTF-8');
$commentText = encodePreservingBr($commentText);
// Parse links and wrap them in a <a href=""></a> tag to be easily clickable
$commentText = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="\$1" target="_blank">\$1</a>', $commentText);
$commentText = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="$1" target="_blank">$1</a>', $commentText);
$cdata['commenttxt'] = $commentText;

if (!empty($commentres->fields['edittime'])) {
Expand Down Expand Up @@ -704,7 +704,7 @@
$commentText = html_entity_decode($commentres->fields['commenttxt'], ENT_QUOTES | ENT_HTML5, 'UTF-8');
$commentText = encodePreservingBr($commentText);
// Parse links and wrap them in a <a href=""></a> tag to be easily clickable
$commentText = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="\$1" target="_blank">\$1</a>', $commentText);
$commentText = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="$1" target="_blank">$1</a>', $commentText);
$cdata['commenttxt'] = $commentText;

if (!empty($commentres->fields['edittime'])) {
Expand Down
4 changes: 2 additions & 2 deletions web/pages/page.banlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ function setPostKey()
$commentText = html_entity_decode($commentres->fields['commenttxt'], ENT_QUOTES | ENT_HTML5, 'UTF-8');
$commentText = encodePreservingBr($commentText);
// Parse links and wrap them in a <a href=""></a> tag to be easily clickable
$commentText = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="\$1" target="_blank">\$1</a>', $commentText);
$commentText = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="$1" target="_blank">$1</a>', $commentText);
$cdata['commenttxt'] = $commentText;

if (!empty($commentres->fields['edittime'])) {
Expand Down Expand Up @@ -808,7 +808,7 @@ function setPostKey()
$commentText = html_entity_decode($cotherdata->fields['commenttxt'], ENT_QUOTES | ENT_HTML5, 'UTF-8');
$commentText = encodePreservingBr($commentText);
// Parse links and wrap them in a <a href=""></a> tag to be easily clickable
$commentText = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="\$1" target="_blank">\$1</a>', $commentText);
$commentText = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="$1" target="_blank">$1</a>', $commentText);
$coment['commenttxt'] = $commentText;

if ($cotherdata->fields['editname'] != "") {
Expand Down
2 changes: 1 addition & 1 deletion web/pages/page.commslist.php
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ function setPostKey()
$commentText = html_entity_decode($commentres->fields['commenttxt'], ENT_QUOTES | ENT_HTML5, 'UTF-8');
$commentText = encodePreservingBr($commentText);
// Parse links and wrap them in a <a href=""></a> tag to be easily clickable
$commentText = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="\$1" target="_blank">\$1</a>', $commentText);
$commentText = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="$1" target="_blank">$1</a>', $commentText);
$cdata['commenttxt'] = $commentText;

if (!empty($commentres->fields['edittime'])) {
Expand Down