Skip to content

Commit 33f9308

Browse files
authored
Merge pull request #2177 from jim-parry/fix/honeypot
Fix missing form close tag
2 parents 4469721 + e5f575d commit 33f9308

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

system/Honeypot/Honeypot.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?php
2-
3-
42
/**
53
* CodeIgniter
64
*
@@ -107,7 +105,7 @@ public function attachHoneypot(ResponseInterface $response)
107105
$prep_field = $this->prepareTemplate($this->config->template);
108106

109107
$body = $response->getBody();
110-
$body = str_ireplace('</form>', $prep_field, $body);
108+
$body = str_ireplace('</form>', $prep_field . '</form>', $body);
111109
$response->setBody($body);
112110
}
113111

0 commit comments

Comments
 (0)