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
  • Typolink
  • PageLinkBuilder.php
Find file BlameHistoryPermalink
  • Stefan Neufeind's avatar
    [FEATURE] Improve creation of URL query strings from arrays · ff6ad483
    Stefan Neufeind authored Dec 18, 2017 and Anja Leichsenring's avatar Anja Leichsenring committed Nov 05, 2018
    Adds a new method HttpUtility::buildQueryString() using
    http_build_query() instead of reimplementing the encoding-process like
    the old method GeneralUtility::implodeArrayForUrl() did.
    
    As the parameter $rawurlencodeParamName of implodeArrayForUrl() was set
    to "false" by default and used in several places without manually
    setting it to "true" using that method could lead to potentially unsafe
    non-encoded parameter names.
    
    Some unit-tests had wrong URLs with non-encoded braces [...], which were
    adapted to be properly escaped as well.
    
    Resolves: #83334
    Releases: master
    Change-Id: Ifbaad912f0d658671356dc7bdf1579dacff272df
    Reviewed-on: https://review.typo3.org/55079
    
    
    Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
    Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
    Tested-by: default avatarTYPO3com <no-reply@typo3.com>
    Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
    Tested-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
    ff6ad483