Commit cc432131 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #20428 from owncloud/add-log-statement-for-trusted-domain-error

Add warning log entry when user accesses untrusted domain
parents d7232557 ba67dd98
......@@ -673,6 +673,15 @@ class OC {
header('HTTP/1.1 400 Bad Request');
header('Status: 400 Bad Request');
'Trusted domain error. "{remoteAddress}" tried to access using "{host}" as host.',
'app' => 'core',
'remoteAddress' => $request->getRemoteAddress(),
'host' => $host,
$tmpl = new OCP\Template('core', 'untrustedDomain', 'guest');
$tmpl->assign('domain', $request->server['SERVER_NAME']);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment