atom_service_url_filter

Definition:
function atom_service_url_filter($url)

Secure URL, if available or the given URL.

Parameters

  • string $url: Complete URL path with transport.

Return values

returns:Secure or regular URL path.

Source code

function atom_service_url_filter($url)

{

	if ( url_is_accessable_via_ssl($url) )

		return preg_replace( '/^http:\/\//', 'https://',  $url );

	else

		return $url;

}

541

No comments yet... Be the first to leave a reply!

Leave a comment