From 2c44c7602ca5a33ddaa3b204712ad2357a82efd9 Mon Sep 17 00:00:00 2001 From: Moc Date: Mon, 30 Aug 2021 20:40:09 +0200 Subject: [PATCH] Fixes #3980 - Remove duplicate random number on contact form - Already called in secure_img::renderInput(); - Should also fix https://github.com/e107inc/visualcaptcha/issues/5 --- e107_core/shortcodes/batch/contact_shortcodes.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e107_core/shortcodes/batch/contact_shortcodes.php b/e107_core/shortcodes/batch/contact_shortcodes.php index 14af85a7d..e8583393d 100644 --- a/e107_core/shortcodes/batch/contact_shortcodes.php +++ b/e107_core/shortcodes/batch/contact_shortcodes.php @@ -76,7 +76,8 @@ class contact_shortcodes extends e_shortcode function sc_contact_imagecode($parm='') { //return e107::getSecureImg()->r_image()."
".e107::getSecureImg()->renderInput()."
"; - return "".e107::getSecureImg()->r_image(); + //return "".e107::getSecureImg()->r_image(); // See #3980 + return e107::getSecureImg()->renderImage(); } function sc_contact_imagecode_label($parm='')