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
  • core
  • Classes
  • Imaging
  • GraphicalFunctions.php
Find file BlameHistoryPermalink
  • Claus Due's avatar
    [BUGFIX] Prevent division by zero when scaling image · a3b2904c
    Claus Due authored Mar 19, 2019 and Anja Leichsenring's avatar Anja Leichsenring committed Jun 05, 2019
    Prevents multiple division by zero errors when scaling
    images, by checking that the input image size is valid
    (meaning non-zero) before attempting to calculate
    the ratio for scaling - because the ratio is based on the
    input size parameters that must not be zero.
    
    Change-Id: I33fd3e49a1b3dcdc319309af736a9d785130af94
    Releases: master, 9.5, 8.7
    Resolves: #87954
    Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60299
    
    Tested-by: Daniel Goerz's avatarDaniel Goerz <daniel.goerz@posteo.de>
    Tested-by: default avatarTYPO3com <noreply@typo3.com>
    Tested-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
    Reviewed-by: Daniel Goerz's avatarDaniel Goerz <daniel.goerz@posteo.de>
    Reviewed-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
    Reviewed-by: Oliver Hader's avatarOliver Hader <oliver.hader@typo3.org>
    Reviewed-by: Anja Leichsenring's avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
    a3b2904c