Make WordPress Core

Ticket #52241: Fixed_infinite_loop_on_Windows_systems_.patch

File Fixed_infinite_loop_on_Windows_systems_.patch, 749 bytes (added by raubvogel, 12 months ago)
  • wp-includes/functions.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
    diff --git a/wp-includes/functions.php b/wp-includes/functions.php
    a b  
    77347734        $path = untrailingslashit( $path );
    77357735        unset( $directory_cache[ $path ] );
    77367736
    7737         while ( DIRECTORY_SEPARATOR !== $path && '.' !== $path && '..' !== $path ) {
     7737        while ( DIRECTORY_SEPARATOR !== $path && $path[ 0 ] . ':' . DIRECTORY_SEPARATOR !== $path && '.' !== $path && '..' !== $path ) {
    77387738                $path = dirname( $path );
    77397739                unset( $directory_cache[ $path ] );
    77407740        }