Make WordPress Core


Ignore:
Timestamp:
12/12/2017 04:15:54 AM (7 years ago)
Author:
dd32
Message:

Filesystem: Allow wp_normalise_path() to handle PHP stream wrappers such as php:// correctly.

Props calin, dd32.
Fixes #42837.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/functions.php

    r42343 r42387  
    151151            array( '/www/path/////', '/www/path/' ),
    152152            array( '/www/path', '/www/path' ),
     153
     154            // PHP Stream wrappers
     155            array( 'php://input', 'php://input' ),
     156            array( 'http://example.com//path.ext', 'http://example.com/path.ext' ),
     157            array( 'file://c:\\www\\path\\', 'file://C:/www/path/' ),
    153158        );
    154159    }
Note: See TracChangeset for help on using the changeset viewer.