Make WordPress Core

Ticket #48289: 48289.2.diff

File 48289.2.diff, 449 bytes (added by itowhid06, 5 years ago)
  • src/wp-includes/functions.php

    diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
    index 979536f751..f32b7ea8d9 100644
    a b function path_is_absolute( $path ) { 
    19881988        }
    19891989
    19901990        // Windows allows absolute paths like this.
    1991         if ( preg_match( '#^[a-zA-Z]:\\\\#', $path ) ) {
     1991        if ( '/' !== DIRECTORY_SEPARATOR && preg_match( '#^[a-zA-Z]:\\\\#', $path ) ) {
    19921992                return true;
    19931993        }
    19941994