Changeset 6520

Show
Ignore:
Timestamp:
12/29/07 03:14:33 (6 months ago)
Author:
ryan
Message:

Extra traversal check.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/includes/file.php

    r6401 r6520  
    4444 
    4545function validate_file( $file, $allowed_files = '' ) { 
     46    if ( false !== strpos( $file, '..' )) 
     47        return 1; 
     48 
    4649    if ( false !== strpos( $file, './' )) 
    4750        return 1;