summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorPierre Ozoux <pierre@ozoux.net>2022-01-25 10:14:18 +0100
committerPierre Ozoux <pierre@ozoux.net>2022-01-25 10:33:31 +0100
commite6d9ef2e38daffcab808eaa41b18ab16c6253b97 (patch)
tree1967aff91a149684fac7f406f14611da9351e11d /lib/base.php
parent562c5730052b83a36b647bbd2db653dc57227f16 (diff)
downloadnextcloud-server-e6d9ef2e38daffcab808eaa41b18ab16c6253b97.tar.gz
nextcloud-server-e6d9ef2e38daffcab808eaa41b18ab16c6253b97.zip
Makes untrusted domain error a warning.
It sends a 400 to the client, so I could even argue that it should be an error. But currently as an admin, I'm quiet surprised that I get a 400 in the UI, and nothing in the log with the default level. I saw this commit that explains the reason why info. But I disagree. Feel free to close the PR if you don't agree with it. Signed-off-by: Pierre Ozoux <pierre@ozoux.net>
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index 6578d506796..3c10f7cb33a 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -775,7 +775,7 @@ class OC {
if (!$isScssRequest) {
http_response_code(400);
- \OC::$server->getLogger()->info(
+ \OC::$server->getLogger()->warning(
'Trusted domain error. "{remoteAddress}" tried to access using "{host}" as host.',
[
'app' => 'core',