Skip to content

Commit 9f44564

Browse files
authored
Merge pull request #219 from nextcloud/fix/enterpriseReleaseRoute
fix: fix detection of the enterprise-release route as intended
2 parents cfb4b8f + 080e4d2 commit 9f44564

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
require_once __DIR__ . '/src/Response.php';
1111

1212
// Check if this is a request for the enterprise version endpoint
13-
if (isset($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'] === '/enterprise-version') {
13+
if (isset($_SERVER['REQUEST_URI']) && substr($_SERVER['REQUEST_URI'], -19) === '/enterprise-version') {
1414
// Set Content-Type to JSON
1515
header('Content-Type: application/json');
1616
// Enforce browser based XSS filters

0 commit comments

Comments
 (0)