[wp-trac] [WordPress Trac] #61054: [BugFix] Division by Zero
WordPress Trac
noreply at wordpress.org
Mon Apr 22 20:33:47 UTC 2024
#61054: [BugFix] Division by Zero
------------------------------+-----------------------
Reporter: jdekhtiar | Owner: audrasjb
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.6
Component: Media | Version: 6.5
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+-----------------------
Changes (by audrasjb):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"58033" 58033]:
{{{
#!CommitTicketReference repository="" revision="58033"
Media: Prevent division by zero in
`wp_img_tag_add_width_and_height_attr()`.
This changesets adds a check for `$size_array` values to prevent a
potential division by zero.
Follow-up to [57294].
Props jdekhtiar.
Fixes #61054.
See #59352.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61054#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list