WordPress.org

Make WordPress Core

Changeset 32322


Ignore:
Timestamp:
04/29/2015 03:16:06 AM (5 years ago)
Author:
dd32
Message:

When creating a temporary file treat the / directory properly, to prevent it ending up in an endless self-calling loop.
Props hnle, taka2. Fixes #32135. See #31811

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/file.php

    r32266 r32322  
    147147    }
    148148
    149     if ( empty( $filename ) || '.' == $filename ) {
     149    if ( empty( $filename ) || '.' == $filename || '/' == $filename ) {
    150150        $filename = time();
    151151    }
Note: See TracChangeset for help on using the changeset viewer.