ZF-4702: autocomplete=off on Zend_Form_Element_Captcha

Issue Type: Improvement Created: 2008-10-24T07:02:10.000+0000 Last Updated: 2012-11-20T20:38:38.000+0000 Status: Open Fix version(s): Reporter: removed user (sandstrom) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Form

  • NeedsPatch

Related issues: Attachments:


I would suggest adding autocomplete="off" to the captcha input field. Don't know if there is a valid-html policy for the framework. If so this could prove a problem since this is only valid in Html5, not html4.

Could be implemented using something like this:

 * Constructor
 * $spec may be:
 * - string: name of element
 * - array: options with which to configure element
 * - Zend_Config: Zend_Config with options for configuring element
 * @param  string|array|Zend_Config $spec 
 * @return void
public function __construct($spec, $options = null) 
    parent::__construct($spec, $options);
         ->setAttrib('autocomplete', 'off')
         ->addValidator($this->getCaptcha(), true);


No comments to display

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.