Skip to content

Use the real host for SERVER_NAME in the TYPO3 driver - #10

Merged
Sandersm90 merged 1 commit into
masterfrom
fix/typo3-stale-dev-server-name
Oct 1, 2026
Merged

Sandersm90 merged 1 commit into
masterfrom
fix/typo3-stale-dev-server-name

Conversation

@Sandersm90

Copy link
Copy Markdown

Phase-1 finding F-1.3 (actionable part).

The TYPO3 driver hardcoded $_SERVER['SERVER_NAME'] = $siteName.'.dev' — a stale default from when Valet's TLD was .dev (switched to .test in 2018). A site at foo.test saw SERVER_NAME = foo.dev. Set it from the actual request host ($_SERVER['HTTP_HOST']), matching every other driver.

The broader host-header → SERVER_NAME propagation (common to all drivers and upstream) is standard web-server behavior and left as-is — apps remain responsible for trusted-host validation, as with any PHP app.

Full suite: 316 tests, phpstan green, php-cs-fixer clean.

The TYPO3 driver hardcoded $_SERVER['SERVER_NAME'] = $siteName.'.dev', a
stale default from when Valet's TLD was .dev (changed to .test in 2018). For a
site served at foo.test the app saw SERVER_NAME 'foo.dev'. Set it from the
actual request host instead, matching every other driver (Basic, Magento2,
Kirby, Craft, ...).
@Sandersm90
Sandersm90 merged commit b6ad279 into master Oct 1, 2026
5 checks passed
@Sandersm90
Sandersm90 deleted the fix/typo3-stale-dev-server-name branch October 1, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant