Update security.php

This commit is contained in:
Namhyeon Go 2018-09-24 05:56:54 +09:00 committed by GitHub
parent 0154bf7d7f
commit 4d5aa00cb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -585,7 +585,7 @@ if(!function_exists("check_redirect_origin")) {
$base_resource = parse_url($base_url);
$base_host = str_replace("www.", "", get_value_in_array("host", $base_resource, ""));
$flag = check_token_abuse($to_host, $base_host);
$flag = !check_token_abuse($to_host, $base_host);
return $flag;
}