Skip to content
Snippets Groups Projects
Commit d6373d9e authored by Frans van der Meer's avatar Frans van der Meer Committed by Stefaan Lippens
Browse files

Issue #1372750: Random CAPTCHA type does not show an image (creates a malformed URL)

also see commit 3c24e45b
Author: Stefaan Lippens <soxofaan@41478.no-reply.drupal.org>
Date:   Tue Aug 18 23:26:30 2009 +0000

    #431672: fixed regression bug in revision 1.14 of random_captcha_type.module
parent cacdbd9e
No related branches found
No related tags found
1 merge request!1Issue #3162735: Not possible to install the module by composer with Drupal 9
......@@ -30,7 +30,7 @@ function random_captcha_type_menu() {
/**
* Implements hook_captcha().
*/
function random_captcha_type_captcha($op, $captcha_type = '') {
function random_captcha_type_captcha($op, $captcha_type = '', $captcha_sid=NULL) {
switch ($op) {
case 'list':
$enabled_types = _random_captcha_type_get_enabled_types();
......@@ -53,7 +53,7 @@ function random_captcha_type_captcha($op, $captcha_type = '') {
}
list($module, $type) = explode('/', $module_and_type);
// Call the generate CAPTCHA hook
$captcha = module_invoke($module, 'captcha', 'generate', $type);
$captcha = module_invoke($module, 'captcha', 'generate', $type, $captcha_sid);
// Store the current CAPTCHA type so it can be recovered for
// regenerating the form in the validation phase
$captcha['form']['random_captcha_type'] = array(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment