summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-03-11 14:55:27 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-03-11 14:55:27 +0100
commita8922e9d359e1be1ecd724474e31bb589e3c0067 (patch)
treec9933b0583da362b554f1f4900130e96dc446c41 /lib
parenta7f6f10d4e29521f9650e569455ba85dbb8e2654 (diff)
parentdc6789fd5bf4ef537a543fcafc90070265a8ee7c (diff)
downloadnextcloud-server-a8922e9d359e1be1ecd724474e31bb589e3c0067.tar.gz
nextcloud-server-a8922e9d359e1be1ecd724474e31bb589e3c0067.zip
Merge pull request #23125 from owncloud/add-port-support-to-trusteddomain
Explicitly check for port
Diffstat (limited to 'lib')
-rw-r--r--lib/private/security/trusteddomainhelper.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/private/security/trusteddomainhelper.php b/lib/private/security/trusteddomainhelper.php
index 885ceee23c3..409628677a7 100644
--- a/lib/private/security/trusteddomainhelper.php
+++ b/lib/private/security/trusteddomainhelper.php
@@ -78,6 +78,12 @@ class TrustedDomainHelper {
if (preg_match(Request::REGEX_LOCALHOST, $domain) === 1) {
return true;
}
+
+ // Compare with port appended
+ if(in_array($domainWithPort, $trustedList, true)) {
+ return true;
+ }
+
return in_array($domain, $trustedList, true);
}