Skip to content

Commit

Permalink
Merge pull request #9589 from google/fix/9276-null-order-key
Browse files Browse the repository at this point in the history
Ensure order_key is a string before checking.
  • Loading branch information
techanvil authored Oct 31, 2024
2 parents 135c0bc + a0100fe commit 06d6607
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function ( $order_id ) use ( $input ) {
$order_key = $input->filter( INPUT_GET, 'key' );

// Don't output the script tag if the order key is invalid.
if ( ! $order->key_is_valid( $order_key ) ) {
if ( ! $order->key_is_valid( (string) $order_key ) ) {
return;
}

Expand Down

0 comments on commit 06d6607

Please sign in to comment.