@@ 966-972 (lines=7) @@ | ||
963 | $nonce_check = isset($this->_route_config['require_nonce']) |
|
964 | ? $this->_route_config['require_nonce'] |
|
965 | : true; |
|
966 | if ($this->_req_action !== 'default' && $nonce_check) { |
|
967 | // set nonce from post data |
|
968 | $nonce = isset($this->_req_data[ $this->_req_nonce ]) |
|
969 | ? sanitize_text_field($this->_req_data[ $this->_req_nonce ]) |
|
970 | : ''; |
|
971 | $this->_verify_nonce($nonce, $this->_req_nonce); |
|
972 | } |
|
973 | // set the nav_tabs array but ONLY if this is UI_request |
|
974 | if ($this->_is_UI_request) { |
|
975 | $this->_set_nav_tabs(); |
@@ 2993-2997 (lines=5) @@ | ||
2990 | $cart = EE_Registry::instance()->SSN->cart(); |
|
2991 | $step = ! $cart instanceof EE_Cart ? 'ticket' : 'questions'; |
|
2992 | // if doing ajax then we need to verify the nonce |
|
2993 | if (defined('DOING_AJAX')) { |
|
2994 | $nonce = isset($this->_req_data[ $this->_req_nonce ]) |
|
2995 | ? sanitize_text_field($this->_req_data[ $this->_req_nonce ]) : ''; |
|
2996 | $this->_verify_nonce($nonce, $this->_req_nonce); |
|
2997 | } |
|
2998 | switch ($step) { |
|
2999 | case 'ticket': |
|
3000 | // process ticket selection |