mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Filesystem: Allow wp_normalise_path() to handle PHP stream wrappers such as php:// correctly.
Props calin, dd32. Fixes #42837. git-svn-id: https://develop.svn.wordpress.org/trunk@42387 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -150,6 +150,11 @@ class Tests_Functions extends WP_UnitTestCase {
|
||||
array( '/www/path/', '/www/path/' ),
|
||||
array( '/www/path/////', '/www/path/' ),
|
||||
array( '/www/path', '/www/path' ),
|
||||
|
||||
// PHP Stream wrappers
|
||||
array( 'php://input', 'php://input' ),
|
||||
array( 'http://example.com//path.ext', 'http://example.com/path.ext' ),
|
||||
array( 'file://c:\\www\\path\\', 'file://C:/www/path/' ),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user