Issues

ZF-6793: Zend_Captcha_Image without "width" and "height" attributes

Issue Type: Bug Created: 2009-05-25T03:54:57.000+0000 Last Updated: 2009-06-17T14:51:35.000+0000 Status: Resolved Fix version(s): - 1.8.4 (23/Jun/09)

Reporter: Jonathan Maron (jonathan_maron) Assignee: Stanislav Malyshev (stas) Tags: - Zend_Captcha

Related issues: Attachments: - ZF-6793-Fix.patch

Description

The render() method of Zend_Captcha_Image does not return the width and height of the image captcha:

<pre class="literal"> public function render(Zend_View_Interface $view, $element = null)
{
    return '<img alt="'.$this->getImgAlt().'" src="'%20.%20$this-"></img><br></br>';
}

The following code does:

<pre class="literal"> public function render(Zend_View_Interface $view, $element = null)
{
    return '<img alt="'.$this->getImgAlt().'" src="'%20.%20$this-"></img><br></br>';

}

Reasoning: "Without this information in the HTML, [the browser] cannot account for the viewport space needed for the image. As a result, it happens that if the user is reading below the image, suddenly [the browser] discovers the dimensions and the whole page jumps disconcertingly." Source: http://is.gd/Da3G)

Comments

Posted by Romain Fromi (fromi) on 2009-06-01T12:43:20.000+0000

Patch file for the fix suggested.

Posted by Stanislav Malyshev (stas) on 2009-06-17T14:51:35.000+0000

fixed, thanks

Have you found an issue?

See the Overview section for more details.

Copyright

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

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

Contacts