Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-4337

Submit button disappears in Drupal Registration. Recaptcha Library HTML issue

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 2.2.3
    • Component/s: None
    • Labels:
      None

      Description

      Submit button disappears in Drupal Registration when CiviCRM is enabled. Problem is in the packages/recaptcha/recaptchalib.php file, Function recaptcha_get_html .

      I think I've seen this bug in older versions, but I haven't verified this.

      In the register form with CiviCRM installed, the Recaptchatlib.php is incorrect:
      <code>
      <noscript>
      <iframe src="'. $server . '/noscript?k=' . $pubkey . $errorpart . '" height="300" width="500" frameborder="0"></iframe><br/>';
      </code>

      Resulting in the following HTML:
      <code>
      <noscript>
      <iframe src="https://api-secure.recaptcha.net/noscript?k=[...]" height="300" width="500" frameborder="0"></iframe><br/>
      </code>

      Probably should be something like:
      <code>
      <noscript>
      <iframe src="'. $server . '/noscript?k=' . $pubkey . $errorpart . '" height="300" width="500" frameborder="0"></iframe><br/>
      <textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
      <input type="hidden" name="recaptcha_response_field" value="manual_challenge"/>
      </noscript>';
      </code>

      I did update my CiviCRM recaptchalib.php and the problem goes away.

        Attachments

          Activity

            People

            • Assignee:
              shailesh Shailesh Lende
              Reporter:
              tstermitz Tom Stermitz
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified