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

Make Anti Spam work on one page with several identical forms #7

Open
danielwolf1 opened this issue Feb 14, 2022 · 0 comments
Open

Make Anti Spam work on one page with several identical forms #7

danielwolf1 opened this issue Feb 14, 2022 · 0 comments

Comments

@danielwolf1
Copy link

We have a page which contains the same form twice - thus the antispam check fails:

  1. The field gets swapped two times by javascript
  2. The stored session key is not valid as the second field instance replaces the session data of the first field (of the first form)

We adjusted the AntispamField by replacing all occurences of strid with a genrated unique ID. We then submit this ID in the form, to get the correct session data and it works - are there any pitfalls if we do that?

'$html .= sprintf('', $this->uniqueId);'

For example:
$sessionData = $session->get('rocksolid_antispam_' . \Input::post('rsas_uniqueid'));

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

1 participant