summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-11-13 11:15:47 +0100
committerLukas Reschke <lukas@owncloud.com>2014-11-18 12:36:03 +0100
commitd0a30b0e55799e8f5348ee558346d6ebf32cedda (patch)
treea5e9d1f4980f66b7e8923f08a870b663c921f5aa /lib/base.php
parent230e517f3506624091d19194ce17d43c3f105c88 (diff)
downloadnextcloud-server-d0a30b0e55799e8f5348ee558346d6ebf32cedda.tar.gz
nextcloud-server-d0a30b0e55799e8f5348ee558346d6ebf32cedda.zip
Ignore port for trusted domains
This lead to a lot of confusion in the past and did not really offer any value. Let's remove the port check therefore. (it's anyways not really a part of the domain) Fixes https://github.com/owncloud/core/issues/12150 and https://github.com/owncloud/core/issues/12123 and also a problem reported by @DeepDiver1975. Conflicts: lib/private/request.php
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/base.php b/lib/base.php
index d365a4a306f..c97c158a1fb 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -613,14 +613,8 @@ class OC {
header('HTTP/1.1 400 Bad Request');
header('Status: 400 Bad Request');
- $domain = $_SERVER['SERVER_NAME'];
- // Append port to domain in case it is not
- if($_SERVER['SERVER_PORT'] !== '80' && $_SERVER['SERVER_PORT'] !== '443') {
- $domain .= ':'.$_SERVER['SERVER_PORT'];
- }
-
$tmpl = new OCP\Template('core', 'untrustedDomain', 'guest');
- $tmpl->assign('domain', $domain);
+ $tmpl->assign('domain', $_SERVER['SERVER_NAME']);
$tmpl->printPage();
exit();