Skip to content

Commit

Permalink
Merge branch 'main' into sitemap
Browse files Browse the repository at this point in the history
# Conflicts:
#	app/code/core/Mage/Sitemap/etc/system.xml
#	tests/unit/Mage/Sitemap/Model/SitemapTest.php
  • Loading branch information
sreichel committed Nov 28, 2024
2 parents 85f9d88 + 0b965e9 commit e000dea
Show file tree
Hide file tree
Showing 5,246 changed files with 7,563 additions and 1,784 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1,196 changes: 13 additions & 1,183 deletions .phpstan.dist.baseline.neon

Large diffs are not rendered by default.

21 changes: 20 additions & 1 deletion .rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,23 @@
DeadCode\ClassMethod\RemoveUselessReturnTagRector::class,
DeadCode\Property\RemoveUselessVarTagRector::class,
TypeDeclaration\ClassMethod\ReturnNeverTypeRector::class,
]);
])
->withPreparedSets(
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
false,
true,
false,
false,
false,
false,
true,
);
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Helper/Block.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Helper/Data.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Helper/Rules/Fallback.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Helper/Variable.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Acl.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Acl/Assert/Ip.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Acl/Assert/Time.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Acl/Resource.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Acl/Role.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Acl/Role/Generic.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Acl/Role/Group.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Acl/Role/Registry.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Acl/Role/User.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Block.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Config.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Mysql4/Acl.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Mysql4/Acl/Role.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Mysql4/Role.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Mysql4/Role/Collection.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Mysql4/Roles.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Mysql4/Roles/Collection.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Mysql4/Rules.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Mysql4/Rules/Collection.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Mysql4/User.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Mysql4/User/Collection.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Observer.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Redirectpolicy.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Resource/Acl.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Resource/Acl/Role.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Resource/Block.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Resource/Role.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Resource/Roles.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Resource/Rules.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Resource/User.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Resource/Variable.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Role.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Roles.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Rules.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
4 changes: 4 additions & 0 deletions app/code/core/Mage/Admin/Model/Session.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down Expand Up @@ -147,6 +148,9 @@ public function login($username, $password, $request = null)
return null;
}

$username = new Mage_Core_Model_Security_Obfuscated($username);
$password = new Mage_Core_Model_Security_Obfuscated($password);

try {
/** @var Mage_Admin_Model_User $user */
$user = $this->_factory->getModel('admin/user');
Expand Down
7 changes: 7 additions & 0 deletions app/code/core/Mage/Admin/Model/User.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down Expand Up @@ -373,6 +374,9 @@ public function getAclRole()
*/
public function authenticate($username, $password)
{
$username = new Mage_Core_Model_Security_Obfuscated($username);
$password = new Mage_Core_Model_Security_Obfuscated($password);

$config = Mage::getStoreConfigFlag('admin/security/use_case_sensitive_login');
$result = false;

Expand Down Expand Up @@ -426,6 +430,9 @@ public function validatePasswordHash(string $string1, string $string2): bool
*/
public function login($username, $password)
{
$username = new Mage_Core_Model_Security_Obfuscated($username);
$password = new Mage_Core_Model_Security_Obfuscated($password);

if ($this->authenticate($username, $password)) {
$this->getResource()->recordLogin($this);
Mage::getSingleton('core/session')->renewFormKey();
Expand Down
1 change: 1 addition & 0 deletions app/code/core/Mage/Admin/Model/Variable.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* OpenMage
*
Expand Down
Loading

0 comments on commit e000dea

Please sign in to comment.