Skip to content

Commit

Permalink
3.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Croker committed Apr 27, 2021
1 parent 728e370 commit 649c728
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 3.0.3 - 2021-04-27
### Fixed
- Fixed a bug in which the PHP script was allowed to continue even if a submission was flagged as spam ([#16](https://github.com/putyourlightson/craft-snaptcha/issues/16)).

## 3.0.2 - 2021-04-16
### Changed
- The keys of posted arrays are now preserved when a submission is flagged as spam.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "putyourlightson/craft-snaptcha",
"description": "Automatically validates forms and prevents spam bots from submitting to your site.",
"version": "3.0.2",
"version": "3.0.3",
"type": "craft-plugin",
"homepage": "https://putyourlightson.com/plugins/snaptcha",
"license": "proprietary",
Expand Down
2 changes: 1 addition & 1 deletion src/Snaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function validateField(ActionEvent $event)

Craft::$app->response->statusCode = 400;
Craft::$app->response->content = $output;
Craft::$app->response->sendAndClose();
Craft::$app->end();
}
}

Expand Down

0 comments on commit 649c728

Please sign in to comment.