Changeset 9242 for trunk/wp-includes/post.php
- Timestamp:
- 10/18/2008 07:48:49 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r9239 r9242 29 29 $file = get_post_meta( $attachment_id, '_wp_attached_file', true ); 30 30 // If the file is relative, prepend upload dir 31 if ( 0 !== strpos($file, '/') && ( ($uploads = wp_upload_dir()) && false === $uploads['error'] ) )31 if ( 0 !== strpos($file, '/') && !preg_match('|^.:\\\|', $file) && ( ($uploads = wp_upload_dir()) && false === $uploads['error'] ) ) 32 32 $file = $uploads['basedir'] . "/$file"; 33 34 33 if ( $unfiltered ) 35 34 return $file;
Note: See TracChangeset
for help on using the changeset viewer.