youtube url do not auto transfer

This commit is contained in:
xiaomlove
2022-08-22 00:07:36 +08:00
parent e48dc3bba9
commit 352d88f1f5
3 changed files with 6 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
<?php
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.7.23');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-08-21');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-08-22');
defined('IN_TRACKER') || define('IN_TRACKER', false);
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");

View File

@@ -216,6 +216,10 @@ function formatAdUrl($adid, $url, $content, $newWindow=true)
return formatUrl("adredir.php?id=".$adid."&amp;url=".rawurlencode($url), $newWindow, $content);
}
function formatUrl($url, $newWindow = false, $text = '', $linkClass = '') {
//Exclude youtube, because [youtube] bbcode
if (str_contains($url, 'youtube')) {
return $url;
}
if (!$text) {
$text = $url;
}

View File

@@ -420,7 +420,7 @@ JS;
}
$result = $rowByRowHtml;
if (!empty($mixedRowContent)) {
$result .= tr($displayName, $mixedRowContent, 1);
$result .= tr($displayName, format_comment($mixedRowContent), 1);
}
return $result;
}