Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • typo3 typo3
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Insights
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • typo3typo3
  • typo3typo3
  • Repository
Switch branch/tag
  • typo3
  • typo3
  • sysext
  • frontend
  • Classes
  • ContentObject
  • ContentObjectRenderer.php
Find file BlameHistoryPermalink
  • Stefan Bürk's avatar
    [BUGFIX] Fix too long regular expression error in ContentObjectRenderer · c869c8ba
    Stefan Bürk authored Nov 04, 2021 and Christian Kuhn's avatar Christian Kuhn committed Nov 10, 2021
    Text cropping on texts with way more than 1000 characters
    triggers regular expression compilation errors.
    The sweet spot was determined to a value of max 962 characters,
    thus leading to internal 'preg_match' error state and throwing
    'Compilation failed: regular expression is too large' warning.
    
    The patch crops text in multiple chunks and reassembles the
    chunks until crop position was reached to avoid this internal
    error exceeding the max regular expression pattern length.
    
    Further tests are added to cover this scenario.
    
    Resolves: #77642
    Releases: master, 10.4
    Change-Id: I15b778370df0d0a3d3087a0b199c3e16f7a46add
    Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72048
    
    
    Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
    Tested-by: Nikita Hovratov's avatarNikita Hovratov <nikita.h@live.de>
    Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
    Reviewed-by: Nikita Hovratov's avatarNikita Hovratov <nikita.h@live.de>
    Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
    c869c8ba