Closed (fixed)
Project:
CAPTCHA
Version:
4.6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jan 2006 at 06:04 UTC
Updated:
17 Aug 2007 at 21:27 UTC
I posted this in a new thread so it didn't get lost in the noise - also so others using the latest stable 4.6 - 4.6.5 as of today - would be able to find this patch.
It's not tested; it needs some eyes - but the patch works for me and is based on earlier patches.
--- comment.module.orig 2006-01-25 22:36:39.593183456 -0700
+++ comment.module 2006-01-25 22:50:09.268094160 -0700
@@ -441,6 +441,14 @@
}
// Validate the comment's body.
+// patch adds captcha module support
+// evilzenscientist 25Jan06
+// based on existing patches
+// comment.module_7.patch http://drupal.org/node/14708
+//
+// Calls captcha to validate post.
+ module_invoke_all('comment', 'validate', $edit);
+// and back into the main comment code
if ($edit['comment'] == '') {
form_set_error('comment', t('The body of your comment is empty.'));
}
@@ -1419,6 +1427,14 @@
// format selector
$form .= filter_form('format', $edit['format']);
+// patch adds captcha module support
+// evilzenscientist 25Jan06
+// based on existing patches
+// comment.module_7.patch http://drupal.org/node/14708
+//
+// Calls captcha to validate post.
+ $form .= implode('', module_invoke_all('comment', 'form', $edit));
+// and back into the main comment code
// preview button:
$form .= form_hidden('cid', $edit['cid']);
| Comment | File | Size | Author |
|---|---|---|---|
| comment.module_44.patch | 1.02 KB | evilzenscientist |
Comments
Comment #1
wundo commented