Skip to content

Commit 090ea91

Browse files
committed
Merge tag 'v19.4.8' into 20.0
2 parents 7974e12 + cd4c896 commit 090ea91

File tree

14 files changed

+71
-31
lines changed

14 files changed

+71
-31
lines changed

.github/changelog/version_19.txt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11

22

3-
## v19.4.8 - unreleased
3+
## v19.4.9 - unreleased
4+
5+
6+
## v19.4.8 - 2020-10-20
7+
8+
CVE-2020-15244 RCE via PHP Object injection via SOAP Requests
9+
#1250 removed use of travisCI
10+
#1236 Adds missing meta tags to prevent SUPEE-11295 related warnings from Magereport
11+
#991 Migrate to new frontend cookie name (session namespace) (#990)
12+
#1266 Add ddev based development setup to Readme
13+
#1247 Fix call_user_func_array arguments for PHP 8
14+
#1242 update mcrypt related explanation in Readme
15+
#1184 Add php-74 to static tests
416

517

618

.github/changelog/version_20.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11

22

33

4-
## v20.0.4 - unreleased
4+
## v20.0.5 - unreleased
5+
6+
7+
## v20.0.4 - 2020-10-20
8+
9+
merged changes from v19.4.8
10+
including
11+
CVE-2020-15244 RCE via PHP Object injection via SOAP Requests
12+
513

614
## v20.0.3 - 2020-09-15
715

.github/workflows/static-code-analyses.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
max-parallel: 5
1313
matrix:
1414
operating-system: [ubuntu-latest]
15-
php-versions: ['7.0', '7.1', '7.2', '7.3']
15+
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4']
1616
steps:
1717
- uses: actions/checkout@v1
1818
- name: Setup PHP
@@ -39,7 +39,7 @@ jobs:
3939
fail-fast: false
4040
matrix:
4141
operating-system: [ubuntu-latest]
42-
php-versions: ['7.4', '8.0']
42+
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
4343
steps:
4444
- uses: actions/checkout@v1
4545
- name: Setup PHP
@@ -54,7 +54,7 @@ jobs:
5454
run: php -v
5555
- name: Check .php files
5656
continue-on-error: true
57-
run: '! find . -not \( -path ./.phpstorm.meta.php -prune \) -not \( -path ./lib/PEAR -prune \) -not \( -path ./lib/phpseclib -prune \) -not \( -path ./lib/Zend -prune \) -type f -name "*.php" -exec php -d error_reporting=32767 -l {} \; 2>&1 1> /dev/null | grep "^"'
57+
run: '! find . -not \( -path ./.phpstorm.meta.php -prune \) -type f -name "*.php" -exec php -d error_reporting=32767 -l {} \; 2>&1 1> /dev/null | grep "^"'
5858
- name: Check .phtml files
5959
continue-on-error: true
6060
run: '! find app/design -type f -name "*.phtml" -exec php -d error_reporting=32767 -l {} \; 2>&1 1> /dev/null | grep "^"'

.travis.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ git add -A && git commit
5555
- PHP 7.0+ (PHP 7.3 and OpenSSL extension strongly recommended)
5656
- MySQL 5.6+ (8.0+ Recommended)
5757

58+
If using php 7.2+ then mcrypt needs to be disabled in php.ini or pecl to fallback on mcryptcompat and phpseclib. mcrypt is deprecated from 7.2+ onwards.
59+
5860
## Translations
5961

6062
There are some new or changed tranlations, if you want add them to your locale pack please check:
@@ -75,6 +77,13 @@ You can add additional meta files in this directory to cover your own project fi
7577
[PhpStorm advanced metadata](https://www.jetbrains.com/help/phpstorm/ide-advanced-metadata.html)
7678
for more information.
7779

80+
## Development Environment with ddev
81+
- Install [ddev](https://ddev.com/get-started/)
82+
- Clone the repository as described in Installation -> Using Git
83+
- Create a ddev config using ```$ ddev config``` the defaults should be good for you
84+
- Open .ddev/config.yaml and change the php version to 7.2
85+
- Navigate to https://magento-lts.ddev.site
86+
7887
## Removed Modules
7988

8089
- Phoenix_Moneybookers
@@ -242,4 +251,4 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
242251
<!-- prettier-ignore-end -->
243252
<!-- ALL-CONTRIBUTORS-LIST:END -->
244253

245-
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
254+
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

app/Mage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public static function getOpenMageVersionInfo()
215215
return array(
216216
'major' => '20',
217217
'minor' => '0',
218-
'patch' => '3',
218+
'patch' => '4',
219219
'stability' => '', // beta,alpha,rc
220220
'number' => '', // 1,2,3,0.3.7,x.7.z.92 @see https://semver.org/#spec-item-9
221221
);

app/code/core/Mage/Catalog/Model/Product/Attribute/Api.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,10 @@ public function remove($attribute)
236236
$this->_fault('can_not_delete');
237237
}
238238

239+
if (!$model->getIsUserDefined()) {
240+
$this->_fault('can_not_delete');
241+
}
242+
239243
try {
240244
$model->delete();
241245
return true;

app/code/core/Mage/Catalog/Model/Resource/Product/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ protected function _afterLoad()
542542

543543
foreach ($this as $product) {
544544
if ($product->isRecurring() && $profile = $product->getRecurringProfile()) {
545-
$product->setRecurringProfile(unserialize($profile));
545+
$product->setRecurringProfile(Mage::helper('core/unserializeArray')->unserialize($profile));
546546
}
547547
}
548548

app/code/core/Mage/Core/Controller/Front/Action.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class Mage_Core_Controller_Front_Action extends Mage_Core_Controller_Varien_Acti
3636
/**
3737
* Session namespace to refer in other places
3838
*/
39-
const SESSION_NAMESPACE = 'frontend';
39+
const SESSION_NAMESPACE = 'om_frontend';
4040

4141
/**
4242
* Add secret key to url config path

app/code/core/Mage/Core/Model/Layout.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ protected function _generateAction($node, $parent)
346346
}
347347

348348
$this->_translateLayoutNode($node, $args);
349-
call_user_func_array(array($block, $method), $args);
349+
call_user_func_array(array($block, $method), array_values($args));
350350
}
351351

352352
Varien_Profiler::stop($_profilerKey);

app/code/core/Mage/Core/Model/Session/Abstract/Varien.php

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,22 @@ public function start($sessionName = null)
121121
$cookieParams['domain'] = $cookie->getDomain();
122122
}
123123

124-
call_user_func_array('session_set_cookie_params', $cookieParams);
124+
call_user_func_array('session_set_cookie_params', array_values($cookieParams));
125125

126126
if (!empty($sessionName)) {
127127
$this->setSessionName($sessionName);
128-
}
129128

129+
// Migrate old cookie from 'frontend'
130+
if ($sessionName === \Mage_Core_Controller_Front_Action::SESSION_NAMESPACE
131+
&& $cookie->get('frontend')
132+
&& ! $cookie->get(\Mage_Core_Controller_Front_Action::SESSION_NAMESPACE)
133+
) {
134+
$frontendValue = $cookie->get('frontend');
135+
$_COOKIE[\Mage_Core_Controller_Front_Action::SESSION_NAMESPACE] = $frontendValue;
136+
$cookie->set(Mage_Core_Controller_Front_Action::SESSION_NAMESPACE, $frontendValue);
137+
$cookie->delete('frontend');
138+
}
139+
}
130140
// potential custom logic for session id (ex. switching between hosts)
131141
$this->setSessionId();
132142

@@ -143,6 +153,19 @@ public function start($sessionName = null)
143153
$secureCookieName = $sessionName . '_cid';
144154
if (isset($_SESSION[self::SECURE_COOKIE_CHECK_KEY])) {
145155
$cookieValue = $cookie->get($secureCookieName);
156+
157+
// Migrate old cookie from 'frontend'
158+
if ( ! $cookieValue
159+
&& $sessionName === \Mage_Core_Controller_Front_Action::SESSION_NAMESPACE
160+
&& $cookie->get('frontend_cid')
161+
&& ! $cookie->get($secureCookieName)
162+
) {
163+
$frontendValue = $cookie->get('frontend_cid');
164+
$_COOKIE[$secureCookieName] = $frontendValue;
165+
$cookie->set($secureCookieName, $frontendValue);
166+
$cookie->delete('frontend_cid');
167+
}
168+
146169
if (!is_string($cookieValue) || $_SESSION[self::SECURE_COOKIE_CHECK_KEY] !== md5($cookieValue)) {
147170
session_regenerate_id(false);
148171
$sessionHosts = $this->getSessionHosts();

app/design/adminhtml/default/openmage/template/forgotpassword.phtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
<html lang="en">
2929
<head>
3030
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
31+
<meta name="robots" content="noindex, nofollow" />
3132
<title><?php echo Mage::helper('adminhtml')->__('Log into OpenMage LTS Admin Page'); ?></title>
3233
<link type="text/css" rel="stylesheet" href="<?php echo $this->getSkinUrl('login.css') ?>" media="all" />
3334
<link rel="icon" href="<?php echo $this->getSkinUrl('favicon.ico'); ?>" type="image/x-icon" />

app/design/adminhtml/default/openmage/template/login.phtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
2929
<head>
3030
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
31+
<meta name="robots" content="noindex, nofollow" />
3132
<title><?php echo Mage::helper('adminhtml')->__('Log into OpenMage LTS Admin Page') ?></title>
3233
<link type="text/css" rel="stylesheet" href="<?php echo $this->getSkinUrl('login.css') ?>" media="all" />
3334

app/design/adminhtml/default/openmage/template/resetforgottenpassword.phtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
<html lang="en">
2929
<head>
3030
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
31+
<meta name="robots" content="noindex, nofollow" />
3132
<title><?php echo Mage::helper('adminhtml')->__('Reset a Password'); ?></title>
3233
<link type="text/css" rel="stylesheet" href="<?php echo $this->getSkinUrl('login.css') ?>" media="all" />
3334
<link rel="icon" href="<?php echo $this->getSkinUrl('favicon.ico'); ?>" type="image/x-icon" />

0 commit comments

Comments
 (0)