Changeset 3279082
- Timestamp:
- 04/22/2025 01:05:17 PM (11 months ago)
- Location:
- payment-forms-for-paystack/trunk
- Files:
-
- 5 edited
-
README.md (modified) (1 diff)
-
includes/classes/class-field-shortcodes.php (modified) (6 diffs)
-
includes/classes/class-settings.php (modified) (1 diff)
-
paystack-forms.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
payment-forms-for-paystack/trunk/README.md
r3163958 r3279082 3 3 # Payment Forms for Paystack 4 4 5 Welcome to the Pay sment Forms for Paystack repository on GitHub. Here you can browse the source, look at open issues and keep track of development.5 Welcome to the Payment Forms for Paystack repository on GitHub. Here you can browse the source, look at open issues and keep track of development. 6 6 7 7 If you are a developer, you can join our Developer Community on [Slack](https://slack.paystack.com). -
payment-forms-for-paystack/trunk/includes/classes/class-field-shortcodes.php
r3210130 r3279082 44 44 'text' 45 45 ); 46 46 47 // sanitize name attribute before using it 48 $atts['name'] = sanitize_text_field( esc_attr( esc_html__($atts['name']) ) ); 49 47 50 // translators: %s: input field name to be entered by the user 48 51 $name = sanitize_text_field( sprintf( esc_attr__( 'Enter %s', 'pff-paystack' ), $atts['name'] ) ); … … 70 73 */ 71 74 public function textarea_field( $atts ) { 75 72 76 $atts = shortcode_atts( 73 77 array( … … 78 82 'textarea' 79 83 ); 80 84 // sanitize name attribute before using it 85 $atts['name'] = sanitize_text_field( esc_attr( esc_html__($atts['name']) ) ); 86 81 87 // translators: %s: textarea field to be entered by the user 82 88 $name = sanitize_text_field( sprintf( esc_attr__( 'Enter %s', 'pff-paystack' ), $atts['name'] ) ); … … 157 163 'input' 158 164 ); 159 165 166 $atts['name'] = sanitize_text_field( esc_attr( esc_html__($atts['name']) ) ); 167 160 168 $name = sanitize_text_field( $atts['name'] ); 161 169 $required = $atts['required'] === 'required' ? 'required' : ''; … … 196 204 'datepicker' 197 205 ); 198 206 207 // sanitize name attribute before using it 208 $atts['name'] = sanitize_text_field( esc_attr( esc_html__($atts['name']) ) ); 209 199 210 // translators: %s: datepicker field to be selected by the user 200 211 $name = sanitize_text_field( sprintf( esc_attr__( 'Enter %s', 'pff-paystack' ), $atts['name'] ) ); … … 272 283 'radio' 273 284 ); 274 285 275 286 $name = sanitize_text_field( $atts['name'] ); 276 287 $options = array_map( 'sanitize_text_field', explode( ',', $atts['options'] ) ); -
payment-forms-for-paystack/trunk/includes/classes/class-settings.php
r3210130 r3279082 192 192 return $result; 193 193 } 194 195 /** 196 * Sanitises the field name 197 * 198 * @param string $value 199 * @return string 200 * 201 */ 202 private function sanitise_field( $value ) { 203 return sanitize_text_field( $value ); 204 } 194 205 } -
payment-forms-for-paystack/trunk/paystack-forms.php
r3238170 r3279082 4 4 Plugin URI: https://github.com/PaystackHQ/Wordpress-Payment-forms-for-Paystack 5 5 Description: Payment Forms for Paystack allows you create forms that will be used to bill clients for goods and services via Paystack. 6 Version: 4.0. 26 Version: 4.0.3 7 7 Author: Paystack 8 8 Author URI: http://paystack.com … … 17 17 define( 'PFF_PAYSTACK_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 18 18 define( 'PFF_PAYSTACK_MAIN_FILE', __FILE__ ); 19 define( 'PFF_PAYSTACK_VERSION', '4.0. 2' );19 define( 'PFF_PAYSTACK_VERSION', '4.0.3' ); 20 20 define( 'PFF_PAYSTACK_TABLE', 'paystack_forms_payments' ); 21 21 define( 'PFF_PLUGIN_BASENAME', plugin_basename(__FILE__) ); -
payment-forms-for-paystack/trunk/readme.txt
r3273581 r3279082 5 5 Requires at least: 5.0 6 6 Tested up to: 6.7 7 Stable tag: 4.0. 27 Stable tag: 4.0.3 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 92 92 93 93 == Changelog == 94 = 4.0.3 = 95 * Security update - Add extra sanitization to form fields 96 94 97 = 4.0.2 = 95 98 * Security Update - Adding in sanitization to the Payments List order variable.
Note: See TracChangeset
for help on using the changeset viewer.