Skip to content

Conversation

@Hanmac
Copy link
Contributor

@Hanmac Hanmac commented Jan 6, 2026

Description (*)

The Size used in the Template:

<action method="setFormId"><formId>user_login</formId></action>
<action method="setImgWidth"><width>230</width></action>
<action method="setImgHeight"><width>50</width></action>

was copied from captcha/captcha to captcha/zend in this:

$blockPath = Mage::helper('captcha')->getCaptcha($this->getFormId())->getBlockName();
$block = $this->getLayout()->createBlock($blockPath);
$block->setData($this->getData());

But the underlying Model, Mage_Captcha_Model_Zend setWidth and setHeight was never called.

Only used in the Template:

<img id="<?php echo $this->getFormId() ?>" width="<?php echo $this->getImgWidth() ?>" height="<?php echo $this->getImgHeight() ?>" src="<?php echo $captcha->getImgSrc() ?>" />

In frontend only using Height:

<img id="<?php echo $this->getFormId() ?>" class="captcha-img" height="<?php echo $this->getImgHeight() ?>" src="<?php echo $captcha->getImgSrc() ?>"/>

One of the other Problems, like overwriting the Template, but that might be fixed later.

Related Pull Requests

  • see OpenMage/magento-lts#<issue_number>

Fixed Issues (if relevant)

  • fixes OpenMage/magento-lts#<issue_number>

Manual testing scenarios (*)

  1. ...
  2. ...

Questions or comments

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All automated tests passed successfully (all builds are green)

@github-actions github-actions bot added the Component: Captcha Relates to Mage_Captcha label Jan 6, 2026
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 6, 2026

@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2026

Test Results

966 tests  ±0   958 ✅ ±0   16s ⏱️ ±0s
213 suites ±0     8 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 7548a32. ± Comparison against base commit 533b2a7.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@addison74 addison74 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Captcha Relates to Mage_Captcha

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants