Cocoon
  1. Cocoon
  2. COCOON-2020

CAPTCHA <input> element should have autocomplete="off"

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.1.6, 2.1.7, 2.1.8, 2.1.9, 2.1.10, 2.1.11, 2.2
    • Fix Version/s: 2.1.12, 2.2
    • Component/s: Blocks: Forms
    • Labels:
      None

      Description

      The bug summary says it all, and this isn't even enough to bother making a patch, all it takes is the following lines added to forms-field-styling.xsl (the diff is from my 2.1.8 vendor branch, but this fix will work in all Cocoon versions):

      forms-field-styling.xsl (working copy)
      @@ -55,6 +55,9 @@
             </xsl:if>
             <!-- @id:input is what labels point to -->
             <input name="{@id}" id="{@id}:input" value="{fi:value}" title="{fi:hint}" type="text">
      + <xsl:if test="fi:captcha-image">
      + <xsl:attribute name="autocomplete" select="'off'"/>
      + </xsl:if>
               <xsl:apply-templates select="." mode="styling"/>
             </input>
             <xsl:apply-templates select="." mode="common"/>

        Activity

          People

          • Assignee:
            Antonio Gallardo
            Reporter:
            Mark Lundquist
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development