Changeset 6393
- Timestamp:
- 12/16/07 21:44:48 (1 year ago)
- Files:
-
- trunk/wp-app.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-app.php
r6364 r6393 404 404 elseif ( empty( $slug ) ) // just make a random name 405 405 $slug = substr( md5( uniqid( microtime() ) ), 0, 7); 406 $ext = preg_replace( '|.*/([a-z ]+)|', '$1', $_SERVER['CONTENT_TYPE'] );406 $ext = preg_replace( '|.*/([a-z0-9]+)|', '$1', $_SERVER['CONTENT_TYPE'] ); 407 407 $slug = "$slug.$ext"; 408 408 $file = wp_upload_bits( $slug, NULL, $bits);
