Finalize removal of Mage_Captcha module from OpenMage LTS #4926
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



This PR completes the removal of the legacy
Mage_Captchamodule from OpenMage LTS due to security and maintenance concerns. The module has been identified as outdated and potentially vulnerable, making its removal necessary for the security and maintainability of the codebase.Changes Made
Module Files Removed
app/code/core/Mage/Captcha/directory and all PHP filesjs/mage/captcha.jsJavaScript fileskin/frontend/rwd/default/scss/module/_captcha.scssstylesheetapp/etc/modules/Mage_Captcha.xmlTemplate and Layout Files Removed
app/design/frontend/rwd/default/template/captcha/zend.phtmlapp/design/frontend/base/default/template/captcha/zend.phtmlapp/design/adminhtml/default/default/template/captcha/zend.phtmlapp/design/frontend/base/default/layout/captcha.xmlapp/design/adminhtml/default/default/layout/captcha.xmlReferences Cleaned Up
Mage_Captchaentry from core module configuration inapp/code/core/Mage/Core/Model/Config.php@import "module/captcha"from SCSS core fileDocumentation Updates
docs/content/users/modules/captcha.mdto inform users about the removalREADME.mdexplaining the removal and recommending modern alternativesopenmage/module-mage-captchaRecommended Alternatives
For users who need CAPTCHA functionality, we recommend these modern, secure alternatives:
Backward Compatibility
This is a breaking change for sites that rely on the built-in CAPTCHA functionality. Site owners using this module should:
Mage_CaptchaclassesThe legacy module code is preserved in the openmage/module-mage-captcha repository for reference purposes.
Testing
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/5b5e3821314f947dd040c70f7992a64eac89025c/usr/bin/php8.3 -n -c /tmp/ewAePi /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/PHPCSStandards/composer-installer/zipball/e9cf5e4bbf7eeaf9ef5db34938942602838fc2b1/usr/bin/php8.3 -n -c /tmp/ewAePi /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/cweagans/composer-patches/zipball/e190d4466fe2b103a55467dfa83fc2fecfcaf2db/usr/bin/php8.3 -n -c /tmp/ewAePi /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/eloquent/enumeration/zipball/0242859435d9b135939816858348556d3cde9e3c/usr/bin/php8.3 -n -c /tmp/ewAePi /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/jsonrainbow/json-schema/zipball/feb2ca6dd1cebdaf1ed60a4c8de2e53ce11c4fd8/usr/bin/php8.3 -n -c /tmp/ewAePi /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963/usr/bin/php8.3 -n -c /tmp/ewAePi /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/symfony/console/zipball/c4ba980ca61a9eb18ee6bcc73f28e475852bb1ed/usr/bin/php8.3 -n -c /tmp/ewAePi /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/symfony/deprecation-contracts/zipball/63afe740e99a13ba87ec199bb07bbdee937a5b62/usr/bin/php8.3 -n -c /tmp/ewAePi /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/symfony/filesystem/zipball/75ae2edb7cdcc0c53766c30b0a2512b8df574bd8/usr/bin/php8.3 -n -c /tmp/ewAePi /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/symfony/finder/zipball/73089124388c8510efb8d2d1689285d285937b08/usr/bin/php8.3 -n -c /tmp/ewAePi /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/symfony/polyfill-ctype/zipball/a3cc8b044a6ea513310cbd48ef7333b384945638/usr/bin/php8.3 -n -c /tmp/ewAePi /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe/usr/bin/php8.3 -n -c /tmp/ewAePi /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/3833d7255cc303546435cb650316bff708a1c75c/usr/bin/php8.3 -n -c /tmp/ewAePi /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6d857f4d76bd4b343eac26d6b539585d2bc56493/usr/bin/php8.3 -n -c /tmp/ewAePi /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/symfony/polyfill-php73/zipball/0f68c03565dcaaf25a890667542e8bd75fe7e5bb/usr/bin/php8.3 -n -c /tmp/ewAePi /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/symfony/polyfill-php80/zipball/0cc9dd0f17f61d8131e7df6b84bd344899fe2608/usr/bin/php8.3 -n -c /tmp/ewAePi /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/symfony/service-contracts/zipball/f021b05a130d35510bd6b25fe9053c2a8a15d5d4/usr/bin/php8.3 -n -c /tmp/ewAePi /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/symfony/string/zipball/f0ce0bd36a3accb4a225435be077b4b4875587f4/usr/bin/php8.3 -n -c /tmp/ewAePi /usr/bin/composer install --no-interaction(http block)If you need me to access, download, or install something from one of these locations, you can either:
This pull request was created as a result of the following prompt from Copilot chat.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.