mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-28 01:10:51 +01:00
Fixed URL matching with double dashes in hostname
This commit is contained in:
parent
7ae3678554
commit
6bbe658370
@ -285,6 +285,8 @@
|
||||
function markup(&$body) {
|
||||
global $board;
|
||||
|
||||
$body = utf8tohtml($body, true);
|
||||
|
||||
if(MARKUP_URLS)
|
||||
$body = preg_replace(URL_REGEX, "<a href=\"$0\">$0</a>", $body);
|
||||
|
||||
@ -299,8 +301,6 @@
|
||||
$body = str_replace('--', '–', $body); // en dash
|
||||
}
|
||||
|
||||
$body = utf8tohtml($body, true);
|
||||
|
||||
// Cites
|
||||
if(preg_match_all('/(^|\s)>>([0-9]+?)(\s|$)/', $body, $cites)) {
|
||||
$previousPosition = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user