diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-10-08 08:51:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-08 08:51:11 +0200 |
commit | 075a0b24d53dfa4fed0c0c20925cfeeefc622962 (patch) | |
tree | fbc34f4a4b6efbe133bd4f4585dc89e744d53b4d /lib | |
parent | f2d44b87bb3edaa502ea008a10c8f845b108e729 (diff) | |
parent | 2df8d646c1c1375a1758ea3a16551643e4b1e92f (diff) | |
download | nextcloud-server-075a0b24d53dfa4fed0c0c20925cfeeefc622962.tar.gz nextcloud-server-075a0b24d53dfa4fed0c0c20925cfeeefc622962.zip |
Merge pull request #17431 from johkoenig/bugfix/17377/trusted_domain_helper_case_insensitive
make TrustedDomainHelper case insensitive
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Security/TrustedDomainHelper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Security/TrustedDomainHelper.php b/lib/private/Security/TrustedDomainHelper.php index 5237767d8ea..22a75158294 100644 --- a/lib/private/Security/TrustedDomainHelper.php +++ b/lib/private/Security/TrustedDomainHelper.php @@ -90,7 +90,7 @@ class TrustedDomainHelper { if (gettype($trusted) !== 'string') { break; } - $regex = '/^' . implode('[-\.a-zA-Z0-9]*', array_map(function($v) { return preg_quote($v, '/'); }, explode('*', $trusted))) . '$/'; + $regex = '/^' . implode('[-\.a-zA-Z0-9]*', array_map(function($v) { return preg_quote($v, '/'); }, explode('*', $trusted))) . '$/i'; if (preg_match($regex, $domain) || preg_match($regex, $domainWithPort)) { return true; } |