[wp-trac] [WordPress Trac] #46561: Make wp_normalize_path() on Windows resolve drive letter for drive–relative paths
WordPress Trac
noreply at wordpress.org
Tue Mar 19 09:32:14 UTC 2019
#46561: Make wp_normalize_path() on Windows resolve drive letter for drive–relative
paths
-------------------------+------------------------------
Reporter: Rarst | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: minor | Resolution:
Keywords: needs-patch | Focuses:
-------------------------+------------------------------
Comment (by Rarst):
One problem is that `wp_normalize_path()` doesn’t require path to be
''real'', it normalizes ''path strings'' really. Introducing
`file_exists()` check here feels somewhat unwanted.
Maybe we should introduce a new function, something like
`wp_normalize_real_path()` that will both validate path as valid
filesystem path and normalize it?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46561#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list