Skip to content

Commit

Permalink
Merge pull request #2177 from jim-parry/fix/honeypot
Browse files Browse the repository at this point in the history
Fix missing form close tag
  • Loading branch information
lonnieezell authored Sep 2, 2019
2 parents 4469721 + e5f575d commit 33f9308
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions system/Honeypot/Honeypot.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<?php


/**
* CodeIgniter
*
Expand Down Expand Up @@ -107,7 +105,7 @@ public function attachHoneypot(ResponseInterface $response)
$prep_field = $this->prepareTemplate($this->config->template);

$body = $response->getBody();
$body = str_ireplace('</form>', $prep_field, $body);
$body = str_ireplace('</form>', $prep_field . '</form>', $body);
$response->setBody($body);
}

Expand Down

0 comments on commit 33f9308

Please sign in to comment.