mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed hosts in uppercase;
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user