- Download the
github-issue-22590.diff
and save it toMAGENTO_ROOT/patches/composer/
- Require composer-patches:
composer require cweagans/composer-patches
- Add the patches section to your
composer.json
extra field. - Remove existing packages:
rm -rf vendor/magento/framework
- Run
composer install
to re-install and apply patches.
Last active
May 3, 2019 21:25
-
-
Save jerrylopez/5122e67f52fbcab8b8e4192b356f7495 to your computer and use it in GitHub Desktop.
Unintentional Adminhtml Login Page Redirect Patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"require": { | |
"cweagans/composer-patches": "^1" | |
}, | |
"extra": { | |
"patches": { | |
"magento/framework": { | |
"MAGETWO-43364: Unintentional Adminhtml Login Page Redirect Patch": "patches/composer/github-issue-22590.diff" | |
} | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/vendor/magento/framework/App/Router/ActionList.php b/vendor/magento/framework/App/Router/ActionList.php | |
index 9944e617b..0f35656ff 100644 | |
--- a/vendor/magento/framework/App/Router/ActionList.php | |
+++ b/vendor/magento/framework/App/Router/ActionList.php | |
@@ -91,7 +91,7 @@ class ActionList | |
if ($area) { | |
$area = '\\' . $area; | |
} | |
- if (strpos($namespace, self::NOT_ALLOWED_IN_NAMESPACE_PATH) !== false) { | |
+ if (stripos($namespace, self::NOT_ALLOWED_IN_NAMESPACE_PATH) !== false) { | |
return null; | |
} | |
if (in_array(strtolower($action), $this->reservedWords)) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment