Skip to content

Commit

Permalink
Fixes internal infinite recursion on Nginx/PHP-FPM environments
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanbrauer committed Oct 16, 2023
1 parent f315bfd commit 3fc53b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Controllers/ShareDraftController.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ private function getRenderedPageByURL(string $url): HTTPResponse
? $variables['_SERVER']['HTTP_USER_AGENT']
: 'CLI';

// This extra step required for PHP-FPM/Nginx implementations
$variables['env'] = $variables['_SERVER'];

Environment::setVariables($variables);

// Health-check prior to creating environment
Expand Down

0 comments on commit 3fc53b8

Please sign in to comment.