Issues

ZF-12217: Zend_Captcha Enhancement To Support Inlined Base64 Images

Description

Zend_Captcha relies on Zend_Captcha_Image which uses imagepng($img, $FILE) to write the image file to disk. Then, this needs to be cleaned up in later in the garbage collection. For large scalable sites, local dirs is a pain and a security threat. This is a perfect case to send the image with the inline /base64 encoding:

http://websiteoptimization.com/speed/tweak/…

We were able to accomplish this by overwriting the generateImage method, but it would have been easier if the generateImage was separate from the writing to the disk. In that way, we could have allowed the base class to generate the image, and then fetch the base64 encoded content for inline embedding instead of writing to disk. Split up that method.

Comments

No comments to display