Skip to content

Instantly share code, notes, and snippets.

@jerrylopez
Last active May 3, 2019 21:25
Show Gist options
  • Save jerrylopez/5122e67f52fbcab8b8e4192b356f7495 to your computer and use it in GitHub Desktop.
Save jerrylopez/5122e67f52fbcab8b8e4192b356f7495 to your computer and use it in GitHub Desktop.
Unintentional Adminhtml Login Page Redirect Patch

Usage

  1. Download the github-issue-22590.diff and save it to MAGENTO_ROOT/patches/composer/
  2. Require composer-patches: composer require cweagans/composer-patches
  3. Add the patches section to your composer.json extra field.
  4. Remove existing packages: rm -rf vendor/magento/framework
  5. Run composer install to re-install and apply patches.
{
"require": {
"cweagans/composer-patches": "^1"
},
"extra": {
"patches": {
"magento/framework": {
"MAGETWO-43364: Unintentional Adminhtml Login Page Redirect Patch": "patches/composer/github-issue-22590.diff"
}
}
}
}
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