Changeset 783
- Timestamp:
- 09/28/06 23:02:02 (2 years ago)
- Files:
-
- trunk/wp-content/blogs.php (modified) (4 diffs)
- trunk/wp-settings.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-content/blogs.php
r777 r783 9 9 ) { 10 10 header("HTTP/1.1 404 Not Found"); 11 graceful_fail('404 — File not found.');11 die('404 — File not found.'); 12 12 } 13 13 … … 69 69 endif; 70 70 71 72 71 $file = $_GET[ 'file' ]; 73 72 $file = constant( "ABSPATH" ) . constant( "UPLOADS" ) . $file; … … 75 74 if ( !is_file( $file ) ) { 76 75 header("HTTP/1.1 404 Not Found"); 77 graceful_fail('404 — File not found.');76 die('404 — File not found.'); 78 77 } 79 78 … … 82 81 if ( in_array( preg_replace( '|.*\.(.*)$|', '$1', $file ), $never ) ) { 83 82 header("HTTP/1.1 404 Not Found"); 84 graceful_fail('404 — File not found.');83 die('404 — File not found.'); 85 84 } 86 85 trunk/wp-settings.php
r777 r783 142 142 wp_cache_init(); 143 143 144 define( "UPLOADS", "wp-content/blogs.dir/{$wpdb->blogid}/files " );144 define( "UPLOADS", "wp-content/blogs.dir/{$wpdb->blogid}/files/" ); 145 145 if( defined( "BLOGDEFINITION" ) && constant( "BLOGDEFINITION" ) == true ) 146 146 return;
