Skip to content

Commit e6d9ef2

Browse files
committed
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>
1 parent 562c573 commit e6d9ef2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/base.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ public static function init() {
775775
if (!$isScssRequest) {
776776
http_response_code(400);
777777

778-
\OC::$server->getLogger()->info(
778+
\OC::$server->getLogger()->warning(
779779
'Trusted domain error. "{remoteAddress}" tried to access using "{host}" as host.',
780780
[
781781
'app' => 'core',

0 commit comments

Comments
 (0)