Browse Source
Send a proper response for status.php on trusted domain error
* fixes #7732
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pull/7991/head
Morris Jobke
8 years ago
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
1 changed files with
9 additions and
1 deletions
-
lib/base.php
|
|
|
@ -779,8 +779,16 @@ class OC { |
|
|
|
$isScssRequest = true; |
|
|
|
} |
|
|
|
|
|
|
|
if(substr($request->getRequestUri(), -11) === '/status.php') { |
|
|
|
OC_Response::setStatus(\OC_Response::STATUS_BAD_REQUEST); |
|
|
|
header('Status: 400 Bad Request'); |
|
|
|
header('Content-Type: application/json'); |
|
|
|
echo '{"error": "Trusted domain error.", "code": 15}'; |
|
|
|
exit(); |
|
|
|
} |
|
|
|
|
|
|
|
if (!$isScssRequest) { |
|
|
|
header('HTTP/1.1 400 Bad Request'); |
|
|
|
OC_Response::setStatus(\OC_Response::STATUS_BAD_REQUEST); |
|
|
|
header('Status: 400 Bad Request'); |
|
|
|
|
|
|
|
\OC::$server->getLogger()->warning( |
|
|
|
|