Skip to content
GitLab
  • Menu
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 & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • typo3
  • typo3typo3
  • Repository
Switch branch/tag
  • typo3
  • typo3
  • sysext
  • backend
  • Classes
  • Controller
  • PageLayoutController.php
Find file BlameHistoryPermalink
  • Jochen Roth's avatar
    [BUGFIX] Enforce setCopyMode in clipboard · 6e3ec7eb
    Jochen Roth authored Oct 08, 2021 and Christian Kuhn's avatar Christian Kuhn committed Oct 19, 2021
    The clipboard component features helper methods,
    which generate a URL to update the clipboard
    state with new elements. Those are used in
    recordlist and filelist.
    
    Previously the "setCopyMode" parameter was
    only set in case the element should be "copied".
    This then might lead to no "mode" set in the
    clipboardData at all. Like other modules
    already do, the helper methods do now always
    set the "setCopyMode" parameter to enforce
    the generation of the "mode" key in the
    clipboardData.
    
    Anyways, an access of the "mode" in the page
    module is secured by a null collapse operator.
    
    Resolves: #95536
    Releases: master
    Change-Id: I0799f711cd3ab8b6be702b62ba26d974d46da2d0
    Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/71504
    
    Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
    Tested-by: Jochen's avatarJochen <rothjochen@gmail.com>
    Tested-by: Nikita Hovratov's avatarNikita Hovratov <nikita.h@live.de>
    Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
    Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
    Reviewed-by: Jochen's avatarJochen <rothjochen@gmail.com>
    Reviewed-by: Nikita Hovratov's avatarNikita Hovratov <nikita.h@live.de>
    Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
    Reviewed-by: Oliver Hader's avatarOliver Hader <oliver.hader@typo3.org>
    Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
    6e3ec7eb