Pk11 3 years ago committed by GitHub
parent d8272a4647
commit d1cb531b0f

@ -174,7 +174,7 @@
if(!empty($row['comment'])) { if(!empty($row['comment'])) {
$comment = $row['comment']; $comment = $row['comment'];
$comment = preg_replace('/^&gt;(?!&gt;\d).+/m', '<strong>$0</strong>', $comment); $comment = preg_replace('/^&gt;(?!&gt;\d).+/m', '<strong>$0</strong>', $comment);
$comment = preg_replace('/(https?|mailto|tel|ftp):[^\s]+/m', '<a href="$0">$0</a>', $comment); $comment = preg_replace('/(?:https?|mailto|tel|ftp):[^\s]+/m', '<a href="$0">$0</a>', $comment);
$comment = preg_replace_callback('/&gt;&gt;\s*(\d+)/', quote_link, $comment); $comment = preg_replace_callback('/&gt;&gt;\s*(\d+)/', quote_link, $comment);
$comment = str_replace("\n", "<br />", $comment); $comment = str_replace("\n", "<br />", $comment);
echo "<p>$comment</p>"; echo "<p>$comment</p>";

Loading…
Cancel
Save