| @@ -168,10 +168,9 @@ | ||
| 168 | 168 | if ( ! $this->state && ! self::get_state_from_request() ) { |
| 169 | 169 | return; |
| 170 | 170 | } |
| 171 | 171 | |
| 172 | - $state_string = $this->get_state_string(); | |
| 173 | - echo '<input name="frm_state" type="hidden" value="' . esc_attr( $state_string ) . '" />'; | |
| 172 | + echo '<input name="frm_state" type="hidden" value="' . esc_attr( $this->get_state_string() ) . '" />'; | |
| 174 | 173 | } |
| 175 | 174 | |
| 176 | 175 | /** |
| 177 | 176 | * @return string |
| @@ -180,11 +179,10 @@ | ||
| 180 | 179 | if ( ! self::open_ssl_is_installed() ) { |
| 181 | 180 | return ''; |
| 182 | 181 | } |
| 183 | 182 | |
| 184 | - $secret = self::get_encryption_secret(); | |
| 185 | - $compressed_state = $this->compressed_state(); | |
| 186 | - $json_encoded = json_encode( $compressed_state ); | |
| 183 | + $secret = self::get_encryption_secret(); | |
| 184 | + $json_encoded = json_encode( $this->compressed_state() ); | |
| 187 | 185 | return openssl_encrypt( $json_encoded, 'AES-128-ECB', $secret ); |
| 188 | 186 | } |
| 189 | 187 | |
| 190 | 188 | /** |