- fixed hosts in uppercase;

This commit is contained in:
Mykyta Synelnikov
2023-07-18 12:34:06 +03:00
parent ce4cf8fe7b
commit 8887572aed
+1
View File
@@ -2878,6 +2878,7 @@ function um_allowed_redirect_hosts( $hosts ) {
$host = trim( $host );
$host = str_replace( array( 'http://', 'https://' ), '', $host );
$host = trim( $host, '/' );
$host = strtolower( $host );
if ( ! in_array( $host, $additional_hosts, true ) ) {
$additional_hosts[] = $host;