Fix footer link (gitlab) and add '()' to regex for url links.
This commit is contained in:
parent
f59f818833
commit
e8fcfc9d6a
|
@ -1005,7 +1005,7 @@ function html_parse($text)
|
|||
|
||||
function display_links_in_body($text)
|
||||
{
|
||||
preg_match_all('/(https?|ftp|scp|news|gopher|telnet):\/\/[a-zA-Z0-9.?%=\-\+\;\:\~\@\!\#&_\/]+/', $text, $matches);
|
||||
preg_match_all('/(https?|ftp|scp|news|gopher|telnet):\/\/[a-zA-Z0-9.?%=\-\+\;\:\~\@\!\(\)\#&_\/]+/', $text, $matches);
|
||||
$found = array();
|
||||
foreach ($matches[0] as $match) {
|
||||
if (! $match) {
|
||||
|
|
|
@ -8,7 +8,7 @@ if(is_file($pubkeyfile)) {
|
|||
echo '</font>';
|
||||
}
|
||||
echo '<font size="1em">';
|
||||
echo '<a href="https://github.com/novabbs/rocksolid-light" target=_blank><img src="/common/images/footer.png"></a><br />';
|
||||
echo '<a href="https://gitlab.com/rslight-public/rocksolid-light" target=_blank><img src="/common/images/footer.png"></a><br />';
|
||||
echo '<i>rocksolid light</i> '.$rslight_version;
|
||||
echo '<br />';
|
||||
echo '<a href="https://gitlab.com/rslight-public/rocksolid-light" target=_blank>clearnet</a>';
|
||||
|
|
Loading…
Reference in New Issue