Fix footer link (gitlab) and add '()' to regex for url links.

This commit is contained in:
Retro_Guy 2023-09-03 03:29:17 -07:00
parent f59f818833
commit e8fcfc9d6a
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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>';