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

SUPEE-9767? #17

Open
jthln opened this issue Jun 6, 2017 · 5 comments
Open

SUPEE-9767? #17

jthln opened this issue Jun 6, 2017 · 5 comments

Comments

@jthln
Copy link

jthln commented Jun 6, 2017

Are there any plans to include the SUPEE-9767 changes?

Currently formkey validation in e.g. OnepageController::savePayment etc. is missing.

@andrewhowdencom
Copy link
Collaborator

Hi @jthln, thanks for the report! I haven't looked into this just yet, though I shall do so in the coming week or so.

A quick glance at this seems to indicate that this should be compatible with the form key changes -- the method savePaymentAction() does a call to parent::savePaymentAction(), which in turn checks the form key changes.

Or are you talking about something else?

@bluec
Copy link

bluec commented Jun 6, 2017

I guess the various templates need to be updated to include the form key though?

@andrewhowdencom
Copy link
Collaborator

Oh indeed, if they do not include it, then they must. I need to do this in the coming weeks anyway -- So, yes, there are plans to include it, but at this stage I don't have a fixed timeframe.

@bluec
Copy link

bluec commented Jun 8, 2017

I've been testing this and no template changes are needed in this extension from what I can see. Since this extension uses the various form templates from the standard onepage checkout, then provided those have been adjusted in the active theme to include the form_key fields then it all works fine.

Note: the Javascript fix in release v1.5.15 is needed to prevent one of the form_key fields from becoming disabled.

I haven't yet determined whether the form_keys are being validated on submission of every step - from a quick look I can see that not all methods call the parent so it is possible there may need to be some minor changes here, but this doesn't prevent checkout from working.

@andrewhowdencom
Copy link
Collaborator

@bluec Thanks for your work, it's much appreciated <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants