Make WordPress Core

Ticket #48289: 48289.diff

File 48289.diff, 872 bytes (added by paultgoodchild, 5 years ago)

a git diff to fix the problem

  • src/wp-includes/functions.php

    diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
    index 979536f751..72fb8ac5f7 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 ( preg_match( '#^[a-zA-Z]:(/|\\\\)#', $path ) ) {
    19921992                return true;
    19931993        }
    19941994