Changeset 3434947
- Timestamp:
- 01/08/2026 08:23:34 AM (3 months ago)
- Location:
- yoco-payment-gateway
- Files:
-
- 6 edited
- 1 copied
-
tags/3.9.1 (copied) (copied from yoco-payment-gateway/trunk)
-
tags/3.9.1/readme.txt (modified) (2 diffs)
-
tags/3.9.1/src/Helpers/Logs.php (modified) (2 diffs)
-
tags/3.9.1/yoco_wc_payment_gateway.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/Helpers/Logs.php (modified) (2 diffs)
-
trunk/yoco_wc_payment_gateway.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
yoco-payment-gateway/tags/3.9.1/readme.txt
r3434365 r3434947 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4.0 7 Stable tag: 3.9. 07 Stable tag: 3.9.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 137 137 == Changelog == 138 138 139 = 3.9.1 = 140 Bug Fixes 141 * Added validation to ensure files meet specific format and naming requirements. 142 * Enhanced input sanitization for file parameter handling. 143 * Implemented path normalization with comprehensive directory boundary verification. 144 * Improved file accessibility and readability checks before processing. 145 139 146 = 3.9.0 = 140 147 * Add First and Last Name validation in checkout for both Legacy and Blocks to ensure compatibility with Yoco payment gateway. -
yoco-payment-gateway/tags/3.9.1/src/Helpers/Logs.php
r3434365 r3434947 29 29 public function callback( WP_REST_Request $request ): WP_REST_Response { 30 30 31 $file = (string) $request->get_param( 'file');31 $file = sanitize_file_name( $request->get_param( 'file' ) ); 32 32 33 if ( '' === $file ) { 33 // Allow only files that start with yoco and have .log extension. 34 if ( '' === $file || '.log' !== substr( $file, -4 ) || 'yoco' !== substr( $file, 0, 4 ) ) { 34 35 return new WP_REST_Response( 35 36 array( 'message' => 'Not found' ), … … 66 67 } 67 68 // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents 68 $log_data = file_get_contents( WC_LOG_DIR . $request->get_param( 'file' ) ); // NOSONAR69 $log_data = file_get_contents( $target ); // NOSONAR 69 70 70 71 add_filter( -
yoco-payment-gateway/tags/3.9.1/yoco_wc_payment_gateway.php
r3434365 r3434947 6 6 * Author: Yoco 7 7 * Author URI: https://www.yoco.com 8 * Version: 3.9. 08 * Version: 3.9.1 9 9 * Requires at least: 6.4.0 10 10 * Tested up to: 6.9 -
yoco-payment-gateway/trunk/readme.txt
r3434365 r3434947 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4.0 7 Stable tag: 3.9. 07 Stable tag: 3.9.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 137 137 == Changelog == 138 138 139 = 3.9.1 = 140 Bug Fixes 141 * Added validation to ensure files meet specific format and naming requirements. 142 * Enhanced input sanitization for file parameter handling. 143 * Implemented path normalization with comprehensive directory boundary verification. 144 * Improved file accessibility and readability checks before processing. 145 139 146 = 3.9.0 = 140 147 * Add First and Last Name validation in checkout for both Legacy and Blocks to ensure compatibility with Yoco payment gateway. -
yoco-payment-gateway/trunk/src/Helpers/Logs.php
r3434365 r3434947 29 29 public function callback( WP_REST_Request $request ): WP_REST_Response { 30 30 31 $file = (string) $request->get_param( 'file');31 $file = sanitize_file_name( $request->get_param( 'file' ) ); 32 32 33 if ( '' === $file ) { 33 // Allow only files that start with yoco and have .log extension. 34 if ( '' === $file || '.log' !== substr( $file, -4 ) || 'yoco' !== substr( $file, 0, 4 ) ) { 34 35 return new WP_REST_Response( 35 36 array( 'message' => 'Not found' ), … … 66 67 } 67 68 // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents 68 $log_data = file_get_contents( WC_LOG_DIR . $request->get_param( 'file' ) ); // NOSONAR69 $log_data = file_get_contents( $target ); // NOSONAR 69 70 70 71 add_filter( -
yoco-payment-gateway/trunk/yoco_wc_payment_gateway.php
r3434365 r3434947 6 6 * Author: Yoco 7 7 * Author URI: https://www.yoco.com 8 * Version: 3.9. 08 * Version: 3.9.1 9 9 * Requires at least: 6.4.0 10 10 * Tested up to: 6.9
Note: See TracChangeset
for help on using the changeset viewer.