set_http 함수 코드 수정
This commit is contained in:
@ -269,12 +269,12 @@ function url_auto_link($str)
|
||||
|
||||
|
||||
// url에 http:// 를 붙인다
|
||||
function set_http($url)
|
||||
function set_http($url, $protocol="http://")
|
||||
{
|
||||
if (!trim($url)) return;
|
||||
|
||||
if (!preg_match("/^(http|https|ftp|telnet|news|mms)\:\/\//i", $url))
|
||||
$url = "http://" . $url;
|
||||
$url = $protocol. $url;
|
||||
|
||||
return $url;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user