allowed_()

最后更新于:2021-11-25 19:46:48

allowed_( bool$is_external, string$host)

Mark allowed redirect hosts safe for HTTP requests as well.

参数

$is_external

(bool) (Required)

$host

(string) (Required)

响应

(bool)

源文件

文件: gc-includes/http.php

function allowed_http_request_hosts( $is_external, $host ) {
	if ( ! $is_external && gc_validate_redirect( 'http://' . $host ) ) {
		$is_external = true;
	}
	return $is_external;
}