ReCaptcha Plugin
  1. ReCaptcha Plugin
  2. GPRECAPTCHA-8

Possibility to set maxlength to avoid http response 413

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: Grails-ReCaptcha 0.4
    • Fix Version/s: None
    • Labels:
      None
    • Testcase included:
      yes

      Description

      It would be good to have a parameter maxlength for the input field to avoid HTTP Error 413 Request entity too large. A 16004 length string attached.

      1. 16004.txt
        16 kB
        Peter Lindstrom

        Activity

        Hide
        Chad Johnston added a comment -

        This is a good idea, but I don't know if it can be handled through this plugin. The plugin essentially creates this code:

        <script type="text/javascript"
           src="http://api.recaptcha.net/challenge?k=<your_public_key>">
        </script>
        
        <noscript>
           <iframe src="http://api.recaptcha.net/noscript?k=<your_public_key>"
               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>
        

        In most cases, the the input field is generated from ReCaptcha's script. The plugin has no control over what is generated in this instance. I might be able to modify the maxlength of the field generated under the <noscript/>, but I'm not sure what a good size for the maxlength would be. I'll leave this issue open for now.

        Show
        Chad Johnston added a comment - This is a good idea, but I don't know if it can be handled through this plugin. The plugin essentially creates this code: <script type= "text/javascript" src= "http://api.recaptcha.net/challenge?k= <your_public_key> " > </script> <noscript> <iframe src= "http://api.recaptcha.net/noscript?k=<your_public_key> " 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> In most cases, the the input field is generated from ReCaptcha's script. The plugin has no control over what is generated in this instance. I might be able to modify the maxlength of the field generated under the <noscript/> , but I'm not sure what a good size for the maxlength would be. I'll leave this issue open for now.
        Hide
        Peter Lindstrom added a comment -

        Is it necessary to have a length more than 20, 100 or 1000? I think 100 would be safe!

        Show
        Peter Lindstrom added a comment - Is it necessary to have a length more than 20, 100 or 1000? I think 100 would be safe!

          People

          • Assignee:
            Chad Johnston
            Reporter:
            Peter Lindstrom
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: