[wp-trac] [WordPress Trac] #35755: wp_tempnam produces filenames longer than 255 characters
WordPress Trac
noreply at wordpress.org
Sat Jun 24 11:46:27 UTC 2023
#35755: wp_tempnam produces filenames longer than 255 characters
---------------------------------------------------+---------------------
Reporter: doems | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.3
Component: Filesystem API | Version: 4.4
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests dev-feedback | Focuses:
---------------------------------------------------+---------------------
Changes (by costdev):
* keywords: has-patch has-unit-tests => has-patch has-unit-tests dev-
feedback
* milestone: => 6.3
Comment:
@azaozz @mikeschroder @audrasjb [https://github.com/WordPress/wordpress-
develop/pull/4647 PR 4647] addresses the issue directly in `wp_tempnam()`.
In the future, this fix could be extended/moved to `wp_unique_filename()`.
However, as `wp_unique_filename()` is used within the Media component and
has other considerations/potential impacts, this would need investigation
by Media component maintainers in a separate ticket. As we don't know how
long this may take, we can fix `wp_tempnam()` in the meantime so its users
are protected from this issue.
It would be ideal to get this fix considered for inclusion in Beta 1 as it
touches a Filesystem API function
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35755#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list