[wp-trac] [WordPress Trac] #33265: Normalize drive letter in paths

WordPress Trac noreply at wordpress.org
Mon Sep 28 08:53:58 UTC 2015


#33265: Normalize drive letter in paths
------------------------------+---------------------
 Reporter:  Rarst             |       Owner:  dd32
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  4.4
Component:  Filesystem API    |     Version:  4.3
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+---------------------

Comment (by bobbingwide):

 Could be even quicker if you don't bother to check for the colon.
 just do ucfirst()

 Assumption is that on nix systems the first letter is a '/' which doesn't
 get changed.

 Are there cases where the $path does validly start with a letter that's
 not a drive letter
 and should therefore not be uppercased.

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


More information about the wp-trac mailing list