WordPress.org

Make WordPress Core

Changeset 18543


Ignore:
Timestamp:
08/13/11 06:10:02 (6 years ago)
Author:
nacin
Message:

Pedantic whitespace in validate_file().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r18534 r18543  
    36063606 */ 
    36073607function validate_file( $file, $allowed_files = '' ) { 
    3608     if ( false !== strpos( $file, '..' )) 
     3608    if ( false !== strpos( $file, '..' ) ) 
    36093609        return 1; 
    36103610 
    3611     if ( false !== strpos( $file, './' )) 
     3611    if ( false !== strpos( $file, './' ) ) 
    36123612        return 1; 
    36133613 
    3614     if (!empty ( $allowed_files ) && (!in_array( $file, $allowed_files ) ) ) 
     3614    if ( ! empty( $allowed_files ) && ! in_array( $file, $allowed_files ) ) 
    36153615        return 3; 
    36163616 
    3617     if (':' == substr( $file, 1, 1 )) 
     3617    if (':' == substr( $file, 1, 1 ) ) 
    36183618        return 2; 
    36193619 
Note: See TracChangeset for help on using the changeset viewer.