---
title: "Deprecation: #109523 - GeneralUtility::isOnCurrentHost() without PSR-7 request"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-109523-1775680564"
source: "Changelog/14.3/Deprecation-109523-GeneralUtilityIsOnCurrentHostWithoutRequest.rst"
typo3-version: "14.3"
typo3-major: 14
type: "deprecation"
issue: 109523
forge: "https://forge.typo3.org/issues/109523"
tags: ["PHP-API", "FullyScanned", "ext:core"]
rendered: "2026-09-20T18:31:11+00:00"
---

# Deprecation: #109523 - GeneralUtility::isOnCurrentHost() without PSR-7 request {#deprecation-109523-1775680564}

See [forge#109523](https://forge.typo3.org/issues/109523)

## Description {#description}

Calling `\TYPO3\CMS\Core\Utility\GeneralUtility::isOnCurrentHost()` without
providing a PSR-7 `\Psr\Http\Message\ServerRequestInterface` as the
second argument is deprecated.

The method previously resolved the current host via
`\TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv()`,
which hides an implicit dependency on server globals. The method signature has been
extended to accept an explicit PSR-7 request object, which should be passed instead.

## Impact {#impact}

A PHP `E_USER_DEPRECATED` error is triggered when
`\TYPO3\CMS\Core\Utility\GeneralUtility::isOnCurrentHost()` is called without a
`ServerRequestInterface` argument.

## Affected installations {#affected-installations}

All installations with third-party extensions that call
`\TYPO3\CMS\Core\Utility\GeneralUtility::isOnCurrentHost()` with
only one argument.

## Migration {#migration}

Pass the current PSR-7 request as the second argument to
`\TYPO3\CMS\Core\Utility\GeneralUtility::isOnCurrentHost()`.

Before:

```php
use TYPO3\CMS\Core\Utility\GeneralUtility;

$isOnCurrentHost = GeneralUtility::isOnCurrentHost($url);
```

After:

```php
use Psr\Http\Message\ServerRequestInterface;
use TYPO3\CMS\Core\Utility\GeneralUtility;

$isOnCurrentHost = GeneralUtility::isOnCurrentHost($url, $request);
```

The PSR-7 request is available in various places, for example as an argument
in controller actions, via `$GLOBALS['TYPO3_REQUEST']` in legacy contexts,
and via `ServerRequestInterface` method parameters.
