[wp-trac] [WordPress Trac] #28811: Mixed slashes in windows paths cause issues downstream

WordPress Trac noreply at wordpress.org
Mon Oct 20 07:49:58 UTC 2014


#28811: Mixed slashes in windows paths cause issues downstream
----------------------------+----------------------
 Reporter:  alightner       |       Owner:
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:
Component:  Filesystem API  |     Version:  3.9.1
 Severity:  normal          |  Resolution:  invalid
 Keywords:                  |     Focuses:
----------------------------+----------------------
Changes (by dd32):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 As mixed paths are perfectly OK on all PHP platforms, and
 `DIRECTORY_SEPERATOR` is only really useful for display purposes, I'm
 marking this as invalid.

 Anywhere in core where a path needs to be compared, `wp_normalize_path()`
 is used, plugins should use the same method for cross-platform
 compatibility. (See all the above tickets for discussion).

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


More information about the wp-trac mailing list