@@ -36,13 +36,13 @@ |
||
36 | 36 | $OC_VersionString = '27.0.0 dev'; |
37 | 37 | |
38 | 38 | $OC_VersionCanBeUpgradedFrom = [ |
39 | - 'nextcloud' => [ |
|
40 | - '26.0' => true, |
|
41 | - '27.0' => true, |
|
42 | - ], |
|
43 | - 'owncloud' => [ |
|
44 | - '10.11' => true, |
|
45 | - ], |
|
39 | + 'nextcloud' => [ |
|
40 | + '26.0' => true, |
|
41 | + '27.0' => true, |
|
42 | + ], |
|
43 | + 'owncloud' => [ |
|
44 | + '10.11' => true, |
|
45 | + ], |
|
46 | 46 | ]; |
47 | 47 | |
48 | 48 | // default Nextcloud channel |
@@ -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-08-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 | } |