Changeset 3005630
- Timestamp:
- 12/05/2023 11:56:29 AM (2 years ago)
- Location:
- piotnetforms/trunk
- Files:
-
- 3 edited
-
inc/forms/ajax-form-builder.php (modified) (2 diffs)
-
piotnetforms.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
piotnetforms/trunk/inc/forms/ajax-form-builder.php
r2605757 r3005630 470 470 471 471 for ($i=0; $i < count($file['name']); $i++) { 472 $file_extension = pathinfo( $file['name'][$i], PATHINFO_EXTENSION ); 472 $file_name_san = sanitize_file_name($file['name'][$i]); 473 $file_extension = pathinfo( $file_name_san, PATHINFO_EXTENSION ); 473 474 474 475 if(in_array(strtolower($file_extension), $not_allowed_extensions)){ … … 476 477 } 477 478 478 $filename_goc = str_replace( '.' . $file_extension, '', $file ['name'][$i]);479 $filename_goc = str_replace( '.' . $file_extension, '', $file_name_san); 479 480 $filename = $filename_goc . '-' . uniqid() . '.' . $file_extension; 480 481 $filename = wp_unique_filename( $upload_dir, $filename ); -
piotnetforms/trunk/piotnetforms.php
r2814826 r3005630 4 4 * Description: Piotnet Forms - Highly Customizable WordPress Form Builder 5 5 * Plugin URI: https://piotnetforms.com/ 6 * Version: 1.0.2 66 * Version: 1.0.27 7 7 * Author: Piotnet 8 8 * Author URI: https://piotnet.com/ … … 15 15 require_once __DIR__ . '/inc/variables.php'; 16 16 17 define( 'PIOTNETFORMS_VERSION', '1.0.2 6' );17 define( 'PIOTNETFORMS_VERSION', '1.0.27' ); 18 18 19 19 class Piotnetforms extends Piotnetforms_Variables { -
piotnetforms/trunk/readme.txt
r2814826 r3005630 5 5 Tested up to: 6.1 6 6 Requires PHP: 5.4 7 Stable tag: 1.0.2 67 Stable tag: 1.0.27 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 77 77 78 78 == Changelog == 79 = 1.0.27 = 80 * Improvement security issue. 79 81 = 1.0.26 = 80 82 * Update WordPress tested up to: 6.1
Note: See TracChangeset
for help on using the changeset viewer.