Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Undefined array key 1, 2, 3 when using list to extract cookie values. #38294

Merged
merged 3 commits into from May 26, 2023
Merged

Conversation

fitimvata
Copy link
Contributor

@fitimvata fitimvata commented May 15, 2023

Submission Review Guidelines:

Changes proposed in this Pull Request:

  • Check cookie parts length before checking if it is valid cookie.

How to test the changes in this Pull Request:

  1. Add a product to cart
  2. Check woocommerce cookie in browser debug console and modify wp_woocommerce_session_xxx cookie in such a way that format is not valid anymore. Ex: add random value abc
  3. Reload the page.
  4. The cart should be empty and session is not initialized.

@github-actions github-actions bot added plugin: woocommerce Issues related to the WooCommerce Core plugin. type: community contribution labels May 15, 2023
@woocommercebot woocommercebot requested review from a team and rrennick and removed request for a team May 15, 2023 09:48
@github-actions
Copy link
Contributor

Hi ,

Apart from reviewing the code changes, please make sure to review the testing instructions as well.

You can follow this guide to find out what good testing instructions should look like:
https://github.com/woocommerce/woocommerce/wiki/Writing-high-quality-testing-instructions

@rrennick
Copy link
Contributor

@fitimvata Thanks for the PR. We provide a template for contributors to complete when submitting a PR. Could you either edit the description of this PR and provide the missing information from the template or close this PR and create a new PR with the template filled out?

@rrennick rrennick added the needs: author feedback The issue/PR needs a response from any of the parties involved in the issue. label May 17, 2023
@fitimvata
Copy link
Contributor Author

@rrennick that template i have used and removed parts that are not needed for this pr

@rrennick
Copy link
Contributor

that template i have used and removed parts that are not needed for this pr

@fitimvata Unfortunately, we don't review incomplete pull requests. If you are unwilling/unable to provide us with the remaining information then I can close the PR.

@fitimvata
Copy link
Contributor Author

@rrennick i have made pr before in woocommerce repo and are merged without a problem. If you want all the template fine i will make the changes.
But i think is more important to fix bugs than add unnecessary bureaucracy for this type of fixes.

I will let you know when i have updated this pr.

@fitimvata
Copy link
Contributor Author

fitimvata commented May 19, 2023

@rrennick I have updated the pull request description.

@rrennick rrennick removed the needs: author feedback The issue/PR needs a response from any of the parties involved in the issue. label May 25, 2023
@rrennick
Copy link
Contributor

I have updated the pull request description.

@fitimvata Thanks, I'll try to review this tomorrow.

@rrennick
Copy link
Contributor

@fitimvata Thanks for your help on this. I've added a changelog so I'm waiting for tests to pass before merging.

@fitimvata
Copy link
Contributor Author

@rrennick thanks

@rrennick rrennick merged commit bf77b4c into woocommerce:trunk May 26, 2023
16 of 17 checks passed
@github-actions github-actions bot added this to the 7.9.0 milestone May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin: woocommerce Issues related to the WooCommerce Core plugin. type: community contribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants