[wp-trac] [WordPress Trac] #48289: wp_normalize_path() breaks path_is_absolute() in Windows.
WordPress Trac
noreply at wordpress.org
Fri Oct 11 08:58:56 UTC 2019
#48289: wp_normalize_path() breaks path_is_absolute() in Windows.
----------------------------+------------------------------
Reporter: paultgoodchild | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.2.3
Severity: normal | Resolution:
Keywords: | Focuses:
----------------------------+------------------------------
Comment (by paultgoodchild):
A potential fix for this is to adjust the regex in the function, so
instead of:
`preg_match( '#^[a-zA-Z]:\\\\#', $path )`
you could have
`preg_match( '#^[a-zA-Z]:(\\\\|/)#', $path )`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48289#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list