Skip to content

Commit 080e4d2

Browse files
committed
fix: fix detection of the enterprise-release route as intended
Signed-off-by: Matthieu Gallien <[email protected]>
1 parent cfb4b8f commit 080e4d2

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)