COM sanitizeUrl

提供: GeeklogJpWiki

lib-common.php>COM sanitizeUrl

説明

string   COM_sanitizeUrl  (string $url, [array $allowed_protocols = ''], [string $default_protocol = '']) 

URLをサニタイズする。

パラメータ

$url
URL to sanitized
$allowed_protocols
array of allowed protocols
$default_protocol
replacement protocol (default: http)

返り値

サニタイズされたURLを返す。

個人用ツール