mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
formatUrl dont use filter_src
This commit is contained in:
@@ -223,10 +223,6 @@ function formatAdUrl($adid, $url, $content, $newWindow=true)
|
|||||||
return formatUrl("adredir.php?id=".$adid."&url=".rawurlencode($url), $newWindow, $content);
|
return formatUrl("adredir.php?id=".$adid."&url=".rawurlencode($url), $newWindow, $content);
|
||||||
}
|
}
|
||||||
function formatUrl($url, $newWindow = false, $text = '', $linkClass = '') {
|
function formatUrl($url, $newWindow = false, $text = '', $linkClass = '') {
|
||||||
$src = filter_src($url);
|
|
||||||
if (empty($src)) {
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
if (!$text) {
|
if (!$text) {
|
||||||
$text = $url;
|
$text = $url;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user