[wp-trac] [WordPress Trac] #35755: wp_tempnam produces filenames longer than 255 characters

WordPress Trac noreply at wordpress.org
Sat Jul 1 11:07:21 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:
---------------------------------------------------+---------------------

Comment (by oglekler):

 wp_unique_filename() should not be responsible for file name length, it
 has one clear purpose. It is possible to introduce a new function,
 something like file_name_sanity_check() but it should be called before the
 wp_unique_filename().

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/35755#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list