Changeset 7027 for sites/trunk/wordcamp.org/public_html/wp-content/plugins
- Timestamp:
- 04/04/2018 07:41:21 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/sponsor-payment-stripe.php
r6709 r7027 224 224 225 225 // Make sure our data hasn't been altered. 226 $payment_data_str = wp_unslash( $payment_data_json ); 227 228 if ( ! hash_equals( hash_hmac( 'sha256', $payment_data_str, $data['keys']['hmac_key'] ), $payment_data_signature ) ) { 226 227 if ( ! hash_equals( hash_hmac( 'sha256', $payment_data_json, $data['keys']['hmac_key'] ), $payment_data_signature ) ) { 229 228 $data['errors'][] = 'Could not verify payload signature.'; 230 229 return; 231 230 } 232 231 233 $payment_data = json_decode( $payment_data_str, true );232 $payment_data = json_decode( wp_unslash( $payment_data_json ), true ); 234 233 235 234 switch ( $payment_data['payment_type'] ) {
Note: See TracChangeset
for help on using the changeset viewer.