Changeset 3086913
- Timestamp:
- 05/15/2024 08:01:13 AM (23 months ago)
- Location:
- image-editor-by-pixo
- Files:
-
- 2 edited
- 8 copied
-
tags/2.3.2 (copied) (copied from image-editor-by-pixo/trunk)
-
tags/2.3.2/admin.css (copied) (copied from image-editor-by-pixo/trunk/admin.css)
-
tags/2.3.2/admin.js (copied) (copied from image-editor-by-pixo/trunk/admin.js)
-
tags/2.3.2/frontend.php (copied) (copied from image-editor-by-pixo/trunk/frontend.php)
-
tags/2.3.2/get-custom-stickers.php (copied) (copied from image-editor-by-pixo/trunk/get-custom-stickers.php)
-
tags/2.3.2/pixo.php (copied) (copied from image-editor-by-pixo/trunk/pixo.php) (4 diffs)
-
tags/2.3.2/post-types.php (copied) (copied from image-editor-by-pixo/trunk/post-types.php)
-
tags/2.3.2/readme.txt (copied) (copied from image-editor-by-pixo/trunk/readme.txt) (2 diffs)
-
trunk/pixo.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
image-editor-by-pixo/tags/2.3.2/pixo.php
r2891508 r3086913 4 4 Plugin URI: https://pixoeditor.com 5 5 Description: Provides Pixo as a replacement of the default image editor in your WordPress installation, as well as integrates to your website front-end 6 Version: 2.3. 16 Version: 2.3.2 7 7 */ 8 8 … … 941 941 $overrides = array( 'test_form' => false ); 942 942 943 $wp_upload_dir = wp_upload_dir(); 944 $original_file = $wp_upload_dir[ 'path' ] . '/' . basename( $metadata[ 'file' ] ); 943 $uploads = wp_upload_dir(); 944 if (!($uploads && false === $uploads['error'])) { 945 return json_decode('{"error":"Error retrieving upload directory"}'); 946 } 947 948 $original_file = $uploads[ 'basedir' ] . '/' . $metadata[ 'file' ]; 945 949 $original_file_backup = $original_file . '.original.backup'; 946 950 copy( $original_file, $original_file_backup ); … … 948 952 switch ( $action ) { 949 953 case PIXOEDITOR_ACTION_SAVE_NEW_UPDATE: 950 $uploads = wp_upload_dir();951 if ( ! ( $uploads && false === $uploads['error'] ) ) {952 return json_decode( '{"error":"Error creating new file"}' );953 }954 955 954 $filename = wp_unique_filename( $uploads['path'], basename( $pixoeditor__filepath ) ); 956 955 $new_file = $uploads['path'] . "/$filename"; … … 987 986 // Prepare an array of post data for the attachment. 988 987 $attachment = array( 989 'guid' => $ wp_upload_dir['url'] . '/' . basename( $filename ),988 'guid' => $uploads['url'] . '/' . basename( $filename ), 990 989 'post_mime_type' => $filetype, 991 990 'post_title' => preg_replace( '/\.[^.]+$/', '', basename( $filename ) ), -
image-editor-by-pixo/tags/2.3.2/readme.txt
r3070133 r3086913 5 5 Requires at least: 3.5 6 6 Tested up to: 6.5 7 Stable tag: 2.3. 17 Stable tag: 2.3.2 8 8 Requires PHP: 5.2 9 9 License: GPLv2 or later … … 104 104 105 105 == Changelog == 106 = 2.3.2 = 107 * Fixed issue when editing older (uploaded long time ago) files 108 106 109 = 2.3.1 = 107 110 * Security fix, preventing possible phishing CSRF attack -
image-editor-by-pixo/trunk/pixo.php
r2891508 r3086913 4 4 Plugin URI: https://pixoeditor.com 5 5 Description: Provides Pixo as a replacement of the default image editor in your WordPress installation, as well as integrates to your website front-end 6 Version: 2.3. 16 Version: 2.3.2 7 7 */ 8 8 … … 941 941 $overrides = array( 'test_form' => false ); 942 942 943 $wp_upload_dir = wp_upload_dir(); 944 $original_file = $wp_upload_dir[ 'path' ] . '/' . basename( $metadata[ 'file' ] ); 943 $uploads = wp_upload_dir(); 944 if (!($uploads && false === $uploads['error'])) { 945 return json_decode('{"error":"Error retrieving upload directory"}'); 946 } 947 948 $original_file = $uploads[ 'basedir' ] . '/' . $metadata[ 'file' ]; 945 949 $original_file_backup = $original_file . '.original.backup'; 946 950 copy( $original_file, $original_file_backup ); … … 948 952 switch ( $action ) { 949 953 case PIXOEDITOR_ACTION_SAVE_NEW_UPDATE: 950 $uploads = wp_upload_dir();951 if ( ! ( $uploads && false === $uploads['error'] ) ) {952 return json_decode( '{"error":"Error creating new file"}' );953 }954 955 954 $filename = wp_unique_filename( $uploads['path'], basename( $pixoeditor__filepath ) ); 956 955 $new_file = $uploads['path'] . "/$filename"; … … 987 986 // Prepare an array of post data for the attachment. 988 987 $attachment = array( 989 'guid' => $ wp_upload_dir['url'] . '/' . basename( $filename ),988 'guid' => $uploads['url'] . '/' . basename( $filename ), 990 989 'post_mime_type' => $filetype, 991 990 'post_title' => preg_replace( '/\.[^.]+$/', '', basename( $filename ) ), -
image-editor-by-pixo/trunk/readme.txt
r3070133 r3086913 5 5 Requires at least: 3.5 6 6 Tested up to: 6.5 7 Stable tag: 2.3. 17 Stable tag: 2.3.2 8 8 Requires PHP: 5.2 9 9 License: GPLv2 or later … … 104 104 105 105 == Changelog == 106 = 2.3.2 = 107 * Fixed issue when editing older (uploaded long time ago) files 108 106 109 = 2.3.1 = 107 110 * Security fix, preventing possible phishing CSRF attack
Note: See TracChangeset
for help on using the changeset viewer.