Skip to content

Commit

Permalink
Feedback fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
barthc committed Apr 18, 2024
1 parent c0b6bd2 commit 297ac68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class-gwiz-gf-openai.php
Original file line number Diff line number Diff line change
Expand Up @@ -1358,7 +1358,7 @@ public function make_request( $endpoint, $body, $feed ) {

$cache_key = sha1( serialize( array(
'url' => $url,
'body' => map_deep( $body, 'sanitize_text_field' ),
'body' => map_deep( $body, 'sanitize_text_field' ), // Sanitize the `$body` variable to ensure consistent `$cache_key`
'request_params' => $this->get_request_params( $feed ),
) ) );

Expand Down

0 comments on commit 297ac68

Please sign in to comment.