We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33835f1 commit e5f575dCopy full SHA for e5f575d
1 file changed
system/Honeypot/Honeypot.php
@@ -1,6 +1,4 @@
1
<?php
2
-
3
4
/**
5
* CodeIgniter
6
*
@@ -107,7 +105,7 @@ public function attachHoneypot(ResponseInterface $response)
107
105
$prep_field = $this->prepareTemplate($this->config->template);
108
106
109
$body = $response->getBody();
110
- $body = str_ireplace('</form>', $prep_field, $body);
+ $body = str_ireplace('</form>', $prep_field . '</form>', $body);
111
$response->setBody($body);
112
}
113
0 commit comments