[wp-trac] [WordPress Trac] #48289: wp_normalize_path() breaks path_is_absolute() in Windows.

WordPress Trac noreply at wordpress.org
Fri Nov 15 12:03:38 UTC 2019


#48289: wp_normalize_path() breaks path_is_absolute() in Windows.
----------------------------------------+---------------------
 Reporter:  paultgoodchild              |       Owner:  (none)
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  5.4
Component:  Filesystem API              |     Version:  5.2.3
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+---------------------

Comment (by paultgoodchild):

 This ticket has the risk of being waylaid as no-one has looked at it in a
 while.

 The suggestions around the use of `DIRECTORY_SEPARATOR` don't work as they
 don't understand the underlying problem. It's got nothing to do with
 `DIRECTORY_SEPARATOR` because the the issue stems from the use of
 `wp_normalize_path()` function, which has nothing to do with
 `DIRECTORY_SEPARATOR`.

 I believe my original patch solves this problem and is simple, effective
 and doesn't affect any of the other processing in the problem-function.

 Would be good if someone could take a deeper look at this and verify the
 simple patch either way.
 Thanks!

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


More information about the wp-trac mailing list