@@ -32,18 +32,18 @@ |
||
32 | 32 | use OCP\Http\WellKnown\IResponse; |
33 | 33 | |
34 | 34 | class SecurityTxtHandler implements IHandler { |
35 | - public function handle(string $service, IRequestContext $context, ?IResponse $previousResponse): ?IResponse { |
|
36 | - if ($service !== 'security.txt') { |
|
37 | - return $previousResponse; |
|
38 | - } |
|
35 | + public function handle(string $service, IRequestContext $context, ?IResponse $previousResponse): ?IResponse { |
|
36 | + if ($service !== 'security.txt') { |
|
37 | + return $previousResponse; |
|
38 | + } |
|
39 | 39 | |
40 | - $response = "Contact: https://hackerone.com/nextcloud |
|
40 | + $response = "Contact: https://hackerone.com/nextcloud |
|
41 | 41 | Expires: 2023-04-31T23:00:00.000Z |
42 | 42 | Acknowledgments: https://hackerone.com/nextcloud/thanks |
43 | 43 | Acknowledgments: https://github.com/nextcloud/security-advisories/security/advisories |
44 | 44 | Policy: https://hackerone.com/nextcloud |
45 | 45 | Preferred-Languages: en"; |
46 | 46 | |
47 | - return new GenericResponse(new TextPlainResponse($response, 200)); |
|
48 | - } |
|
47 | + return new GenericResponse(new TextPlainResponse($response, 200)); |
|
48 | + } |
|
49 | 49 | } |