Changeset 1116
- Timestamp:
- 01/09/2015 04:25:40 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-wporg-themes-upload.php
r1115 r1116 273 273 public function unwrap_package() { 274 274 $base_name = $this->get_sanitized_zip_name(); 275 $ tmp_dir= "{$this->tmp_dir}/{$base_name}.zip";275 $zip_file = "{$this->tmp_dir}/{$base_name}.zip"; 276 276 277 277 // Move the uploaded zip in the temporary directory. 278 move_uploaded_file( $_FILES['zip_file']['tmp_name'], $ tmp_dir);278 move_uploaded_file( $_FILES['zip_file']['tmp_name'], $zip_file ); 279 279 280 280 $unzip = escapeshellarg( self::UNZIP ); 281 $ tmp_dir = escapeshellarg( $tmp_dir);282 $t heme_dir = escapeshellarg( "{$this->theme_dir}/");281 $zip_file = escapeshellarg( $zip_file ); 282 $tmp_dir = escapeshellarg( $this->tmp_dir ); 283 283 284 284 // Unzip it into the theme directory. 285 exec( escapeshellcmd( "{$unzip} {$ tmp_dir} -d {$theme_dir}" ) );285 exec( escapeshellcmd( "{$unzip} {$zip_file} -d {$tmp_dir}" ) ); 286 286 } 287 287
Note: See TracChangeset
for help on using the changeset viewer.