Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2018-08-08 10:52:28 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2018-08-08 10:52:28 +0300
commit09b8666a90c453508ad930ea1cfd629889be7930 (patch)
tree8ababe5c37e0b1b4b04fe88af0e93a716deb5599 /lib/Controller/ProxyController.php
parent26398c3c63c26fcd0d32605464fed36bfb7fbf59 (diff)
Fix wrong property access
IRequest exports the server values as magic read-only property and not via the array access. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Controller/ProxyController.php')
-rw-r--r--lib/Controller/ProxyController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/ProxyController.php b/lib/Controller/ProxyController.php
index ec6a46bdf..4d06163a2 100644
--- a/lib/Controller/ProxyController.php
+++ b/lib/Controller/ProxyController.php
@@ -93,7 +93,7 @@ class ProxyController extends Controller {
// this is there to prevent an open redirector.
// Since we can't prevent the referrer from being added with a HTTP only header we rely on an
// additional JS file here.
- $referrer = $this->request['server']['HTTP_REFERER'] ?? null;
+ $referrer = $this->request->server['HTTP_REFERER'] ?? null;
if (is_string($referrer) && parse_url($referrer, PHP_URL_HOST) === $this->hostname) {
$authorizedRedirect = true;
}