[wp-trac] [WordPress Trac] #36308: get_attached_file() destroys file paths on Windows

WordPress Trac noreply at wordpress.org
Fri Aug 26 18:58:04 UTC 2022


#36308: get_attached_file() destroys file paths on Windows
---------------------------------------------+-----------------------
 Reporter:  Whissi                           |       Owner:  antpb
     Type:  defect (bug)                     |      Status:  reopened
 Priority:  normal                           |   Milestone:  6.1
Component:  Media                            |     Version:  4.4.2
 Severity:  normal                           |  Resolution:
 Keywords:  has-unit-tests has-testing-info  |     Focuses:
---------------------------------------------+-----------------------

Comment (by antpb):

 In [changeset:"53946" 53946]:
 {{{
 #!CommitTicketReference repository="" revision="53946"
 Coding Standards: Use strict comparisons in `path_is_absolute()`.

 This patch adjusts conditions to use strict comparisons when comparing
 `realpath()` in `path_is_absolute()`.

 Props jrf.
 See #36308.
 }}}

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


More information about the wp-trac mailing list