|
241 | 241 | $cdata['added'] = Config::time($commentres->fields['added']); |
242 | 242 | $commentText = html_entity_decode($commentres->fields['commenttxt'], ENT_QUOTES | ENT_HTML5, 'UTF-8'); |
243 | 243 | $commentText = encodePreservingBr($commentText); |
244 | | - $commentText = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="\$1" target="_blank">\$1</a>', $commentText); |
| 244 | + $commentText = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="$1" target="_blank">$1</a>', $commentText); |
245 | 245 | $cdata['commenttxt'] = $commentText; |
246 | 246 |
|
247 | 247 | if (!empty($commentres->fields['edittime'])) { |
|
404 | 404 | $cdata['added'] = Config::time($commentres->fields['added']); |
405 | 405 | $commentText = html_entity_decode($commentres->fields['commenttxt'], ENT_QUOTES | ENT_HTML5, 'UTF-8'); |
406 | 406 | $commentText = encodePreservingBr($commentText); |
407 | | - $commentText = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="\$1" target="_blank">\$1</a>', $commentText); |
| 407 | + $commentText = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="$1" target="_blank">$1</a>', $commentText); |
408 | 408 | $cdata['commenttxt'] = $commentText; |
409 | 409 |
|
410 | 410 | if (!empty($commentres->fields['edittime'])) { |
|
561 | 561 | $commentText = html_entity_decode($commentres->fields['commenttxt'], ENT_QUOTES | ENT_HTML5, 'UTF-8'); |
562 | 562 | $commentText = encodePreservingBr($commentText); |
563 | 563 | // Parse links and wrap them in a <a href=""></a> tag to be easily clickable |
564 | | - $commentText = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="\$1" target="_blank">\$1</a>', $commentText); |
| 564 | + $commentText = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="$1" target="_blank">$1</a>', $commentText); |
565 | 565 | $cdata['commenttxt'] = $commentText; |
566 | 566 |
|
567 | 567 | if (!empty($commentres->fields['edittime'])) { |
|
704 | 704 | $commentText = html_entity_decode($commentres->fields['commenttxt'], ENT_QUOTES | ENT_HTML5, 'UTF-8'); |
705 | 705 | $commentText = encodePreservingBr($commentText); |
706 | 706 | // Parse links and wrap them in a <a href=""></a> tag to be easily clickable |
707 | | - $commentText = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="\$1" target="_blank">\$1</a>', $commentText); |
| 707 | + $commentText = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="$1" target="_blank">$1</a>', $commentText); |
708 | 708 | $cdata['commenttxt'] = $commentText; |
709 | 709 |
|
710 | 710 | if (!empty($commentres->fields['edittime'])) { |
|
0 commit comments