Skip to content

Commit f17e40a

Browse files
committed
Merge remote-tracking branch 'upstream/2.2-develop' into 2.2-develop
2 parents d4e7f56 + 4192ac1 commit f17e40a

File tree

2,340 files changed

+86224
-30601
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,340 files changed

+86224
-30601
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ atlassian*
3333
/.php_cs
3434
/.php_cs.cache
3535
/grunt-config.json
36-
/dev/tools/grunt/configs/local-themes.js
3736

3837
/pub/media/*.*
3938
!/pub/media/.htaccess
@@ -50,6 +49,8 @@ atlassian*
5049
/pub/media/import/*
5150
!/pub/media/import/.htaccess
5251
/pub/media/logo/*
52+
/pub/media/custom_options/*
53+
!/pub/media/custom_options/.htaccess
5354
/pub/media/theme/*
5455
/pub/media/theme_customization/*
5556
!/pub/media/theme_customization/.htaccess

.htaccess

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929

3030
############################################
3131
## default index file
32+
## Specifies option, to use methods arguments in backtrace or not
33+
SetEnv MAGE_DEBUG_SHOW_ARGS 1
3234

3335
DirectoryIndex index.php
3436

@@ -364,6 +366,15 @@
364366
Require all denied
365367
</IfVersion>
366368
</Files>
369+
<Files .user.ini>
370+
<IfVersion < 2.4>
371+
order allow,deny
372+
deny from all
373+
</IfVersion>
374+
<IfVersion >= 2.4>
375+
Require all denied
376+
</IfVersion>
377+
</Files>
367378

368379
# For 404s and 403s that aren't handled by the application, show plain 404 response
369380
ErrorDocument 404 /pub/errors/404.php

.htaccess.sample

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,15 @@
341341
Require all denied
342342
</IfVersion>
343343
</Files>
344+
<Files .user.ini>
345+
<IfVersion < 2.4>
346+
order allow,deny
347+
deny from all
348+
</IfVersion>
349+
<IfVersion >= 2.4>
350+
Require all denied
351+
</IfVersion>
352+
</Files>
344353

345354
# For 404s and 403s that aren't handled by the application, show plain 404 response
346355
ErrorDocument 404 /pub/errors/404.php

CHANGELOG.md

Lines changed: 620 additions & 0 deletions
Large diffs are not rendered by default.

app/bootstrap.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* Environment initialization
99
*/
1010
error_reporting(E_ALL);
11+
stream_wrapper_unregister('phar');
1112
#ini_set('display_errors', 1);
1213

1314
/* PHP version validation */

app/code/Magento/AdminNotification/Block/Grid/Renderer/Actions.php

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
namespace Magento\AdminNotification\Block\Grid\Renderer;
1010

11+
/**
12+
* Renderer class for action in the admin notifications grid.
13+
*/
1114
class Actions extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\AbstractRenderer
1215
{
1316
/**
@@ -37,19 +40,23 @@ public function __construct(
3740
*/
3841
public function render(\Magento\Framework\DataObject $row)
3942
{
40-
$readDetailsHtml = $row->getUrl() ? '<a class="action-details" target="_blank" href="' . $row->getUrl() . '">' .
43+
$readDetailsHtml = $row->getUrl() ? '<a class="action-details" target="_blank" href="' .
44+
$this->escapeUrl($row->getUrl())
45+
. '">' .
4146
__('Read Details') . '</a>' : '';
4247

43-
$markAsReadHtml = !$row->getIsRead() ? '<a class="action-mark" href="' . $this->getUrl(
44-
'*/*/markAsRead/',
45-
['_current' => true, 'id' => $row->getId()]
46-
) . '">' . __(
47-
'Mark as Read'
48-
) . '</a>' : '';
48+
$markAsReadHtml = !$row->getIsRead() ? '<a class="action-mark" href="' .
49+
$this->getUrl(
50+
'*/*/markAsRead/',
51+
['_current' => true, 'id' => $row->getId()]
52+
) . '">' . __(
53+
'Mark as Read'
54+
) . '</a>' : '';
4955

5056
$encodedUrl = $this->_urlHelper->getEncodedUrl();
5157
return sprintf(
52-
'%s%s<a class="action-delete" href="%s" onClick="deleteConfirm(\'%s\', this.href); return false;">%s</a>',
58+
'%s%s<a class="action-delete" href="%s" onclick="deleteConfirm(\'%s\', this.href, {data: {}});' .
59+
' return false;">%s</a>',
5360
$readDetailsHtml,
5461
$markAsReadHtml,
5562
$this->getUrl(

app/code/Magento/AdminNotification/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"lib-libxml": "*"
1212
},
1313
"type": "magento2-module",
14-
"version": "100.2.4",
14+
"version": "100.2.6",
1515
"license": [
1616
"OSL-3.0",
1717
"AFL-3.0"

app/code/Magento/AdvancedPricingImportExport/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"magento/framework": "101.0.*"
1414
},
1515
"type": "magento2-module",
16-
"version": "100.2.4",
16+
"version": "100.2.5",
1717
"license": [
1818
"OSL-3.0",
1919
"AFL-3.0"

app/code/Magento/Analytics/Model/Cryptographer.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,12 @@ private function getInitializationVector()
124124
*/
125125
private function validateCipherMethod($cipherMethod)
126126
{
127-
$methods = openssl_get_cipher_methods();
127+
$methods = array_map(
128+
'strtolower',
129+
openssl_get_cipher_methods()
130+
);
131+
$cipherMethod = strtolower($cipherMethod);
132+
128133
return (false !== array_search($cipherMethod, $methods));
129134
}
130135
}

app/code/Magento/Analytics/Test/Unit/Block/Adminhtml/System/Config/AdditionalCommentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class AdditionalCommentTest extends \PHPUnit\Framework\TestCase
3636
protected function setUp()
3737
{
3838
$this->abstractElementMock = $this->getMockBuilder(AbstractElement::class)
39-
->setMethods(['getComment', 'getLabel'])
39+
->setMethods(['getComment', 'getLabel', 'getHtmlId', 'getName'])
4040
->disableOriginalConstructor()
4141
->getMock();
4242
$this->contextMock = $this->getMockBuilder(Context::class)

0 commit comments

Comments
 (0)