File tree Expand file tree Collapse file tree 5 files changed +3
-41
lines changed
app/code/Magento/AdminNotification/Block/Grid/Renderer Expand file tree Collapse file tree 5 files changed +3
-41
lines changed Original file line number Diff line number Diff 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 >
126117ErrorDocument 404 /pub/errors/404 .php
127118ErrorDocument 403 /pub/errors/404 .php
128119<IfModule mod_headers.c >
Original file line number Diff line number Diff 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
292283ErrorDocument 404 /pub/errors/404.php
Original file line number Diff line number Diff line change 1010
1111namespace Magento \AdminNotification \Block \Grid \Renderer ;
1212
13- /**
14- * Renderer class for action in the admin notifications grid
15- */
1613class 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/ ' ,
Original file line number Diff line number Diff line change @@ -33,11 +33,6 @@ charset UTF-8;
3333error_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
4237location ~* ^/setup($|/) {
4338 root $MAGE_ROOT;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments