Skip to content

Commit f92ce39

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-95922' into 2.1.16-develop-pr60
2 parents 8945c6d + 9e8034b commit f92ce39

File tree

5 files changed

+3
-41
lines changed

5 files changed

+3
-41
lines changed

.htaccess

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,6 @@ DirectoryIndex index.php
114114
order allow,deny
115115
deny from all
116116
</Files>
117-
<Files .user.ini>
118-
<IfVersion < 2.4>
119-
order allow,deny
120-
deny from all
121-
</IfVersion>
122-
<IfVersion >= 2.4>
123-
Require all denied
124-
</IfVersion>
125-
</Files>
126117
ErrorDocument 404 /pub/errors/404.php
127118
ErrorDocument 403 /pub/errors/404.php
128119
<IfModule mod_headers.c>

.htaccess.sample

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -278,15 +278,6 @@ DirectoryIndex index.php
278278
order allow,deny
279279
deny from all
280280
</Files>
281-
<Files .user.ini>
282-
<IfVersion < 2.4>
283-
order allow,deny
284-
deny from all
285-
</IfVersion>
286-
<IfVersion >= 2.4>
287-
Require all denied
288-
</IfVersion>
289-
</Files>
290281

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

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010

1111
namespace Magento\AdminNotification\Block\Grid\Renderer;
1212

13-
/**
14-
* Renderer class for action in the admin notifications grid
15-
*/
1613
class Actions extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\AbstractRenderer
1714
{
1815
/**
@@ -42,9 +39,9 @@ public function __construct(
4239
*/
4340
public function render(\Magento\Framework\DataObject $row)
4441
{
45-
$readDetailsHtml = $row->getUrl() ? '<a class="action-details" target="_blank" href="' .
46-
$this->escapeUrl($row->getUrl()) . '">' .
47-
__('Read Details') . '</a> | ' : '';
42+
$readDetailsHtml = $row->getUrl() ? '<a class="action-details" target="_blank" href="' . $row->getUrl() . '">' . __(
43+
'Read Details'
44+
) . '</a> | ' : '';
4845

4946
$markAsReadHtml = !$row->getIsRead() ? '<a class="action-mark" href="' . $this->getUrl(
5047
'*/*/markAsRead/',

nginx.conf.sample

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ charset UTF-8;
3333
error_page 404 403 = /errors/404.php;
3434
#add_header "X-UA-Compatible" "IE=Edge";
3535

36-
# Deny access to sensitive files
37-
location /.user.ini {
38-
deny all;
39-
}
40-
4136
# PHP entry point for setup application
4237
location ~* ^/setup($|/) {
4338
root $MAGE_ROOT;

pub/.htaccess

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -210,18 +210,6 @@ ErrorDocument 403 /errors/404.php
210210
deny from all
211211
</Files>
212212

213-
###########################################
214-
## Deny access to .user.ini
215-
<Files .user.ini>
216-
<IfVersion < 2.4>
217-
order allow,deny
218-
deny from all
219-
</IfVersion>
220-
<IfVersion >= 2.4>
221-
Require all denied
222-
</IfVersion>
223-
</Files>
224-
225213
<IfModule mod_headers.c>
226214
############################################
227215
## Prevent clickjacking

0 commit comments

Comments
 (0)