Permalink
Browse files

Nonce fix

  • Loading branch information...
1 parent 983ae9c commit 01aa75c6af9001a126332d93344070488114d61b @sc0ttkclark sc0ttkclark committed Jun 22, 2014
Showing with 3 additions and 1 deletion.
  1. +3 −1 classes/PodsAPI.php
View
@@ -7754,7 +7754,9 @@ public function process_form ( $params, $obj = null, $fields = null, $thank_you
if ( is_user_logged_in() )
$uid = 'user_' . get_current_user_id();
- $action = 'pods_form_' . $pod . '_' . $uid . '_' . $id . '_' . $uri . '_' . wp_hash( $form );
+ $field_hash = wp_create_nonce( 'pods_fields_' . $form );
+
+ $action = 'pods_form_' . $pod . '_' . $uid . '_' . $id . '_' . $uri . '_' . $field_hash;
if ( empty( $uid ) )
return pods_error( __( 'Access denied for your session, please refresh and try again.', 'pods' ), $this );

0 comments on commit 01aa75c

Please sign in to comment.