Skip to content
Commit 2e7021e6 authored by Nikita Hovratov's avatar Nikita Hovratov Committed by Andreas Fernandez
Browse files

[BUGFIX] Fix backtracking error in UrlSoftReferenceParser

In case the URL is at the very end of a string and there are no space
characters that follow, the preg_split has failed with a backtracking
error. By declaring the last capturing group as optional, this error is
fixed.

Resolves: #94920
Releases: master
Change-Id: Id846840d910f38612d9b9185b4ed307a62422d4b
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70676


Reviewed-by: default avatarFrank Nägler <frank.naegler@typo3.com>
Reviewed-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: default avatarFrank Nägler <frank.naegler@typo3.com>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
parent 38607711
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment