Skip to content
Snippets Groups Projects
Commit 9410da02 authored by Georg Ringer's avatar Georg Ringer
Browse files

[BUGFIX] Use brackets to access 1st char in string

To stay compatible with PHP 7.4 brackets instead of curly braces must be
used.

Resolves: #90527
Releases: 9.5
Change-Id: If6c107c741830b41769871240786e27f8b7d55b1
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63432


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarStefan Froemken <froemken@gmail.com>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarChristian Eßl <indy.essl@gmail.com>
Tested-by: default avatarPascal Rinker <info@kronova.net>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarTymoteusz Motylewski <t.motylewski@gmail.com>
Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Reviewed-by: default avatarDaniel Siepmann <coding@daniel-siepmann.de>
Reviewed-by: default avatarStefan Froemken <froemken@gmail.com>
Reviewed-by: default avatarSusanne Moog <look@susi.dev>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarChristian Eßl <indy.essl@gmail.com>
Reviewed-by: default avatarPascal Rinker <info@kronova.net>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
parent 4e10f6ee
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,7 @@ class PseudoSite extends NullSite implements SiteInterface
{
// no protocol ("//") and the first part is no "/" (path), means that this is a domain like
// "www.domain.com/blabla", and we want to ensure that this one then gets a "no-scheme agnostic" part
if (!empty($base) && strpos($base, '//') === false && $base{0} !== '/') {
if (!empty($base) && strpos($base, '//') === false && $base[0] !== '/') {
// either a scheme is added, or no scheme but with domain, or a path which is not absolute
// make the base prefixed with a slash, so it is recognized as path, not as domain
// treat as path
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment