mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
youtube url do not auto transfer
This commit is contained in:
@@ -216,6 +216,10 @@ function formatAdUrl($adid, $url, $content, $newWindow=true)
|
||||
return formatUrl("adredir.php?id=".$adid."&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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user