Skip to content

Commit 1c882c0

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into feature/fix-relative-template-paths
2 parents caa4a98 + 2002ef2 commit 1c882c0

File tree

26,905 files changed

+739369
-301315
lines changed

Some content is hidden

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

26,905 files changed

+739369
-301315
lines changed

.gitignore

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
atlassian*
77
/nbproject
88
/sitemap
9+
/sitemap.xml
910
/.idea
1011
/.gitattributes
1112
/app/config_sandbox
@@ -22,9 +23,18 @@ atlassian*
2223
/lib/internal/flex/varien/.settings
2324
/node_modules
2425
/.grunt
26+
/Gruntfile.js
27+
/package.json
28+
/.php_cs
29+
/.php_cs.cache
30+
/grunt-config.json
31+
/dev/tools/grunt/configs/local-themes.js
2532

2633
/pub/media/*.*
2734
!/pub/media/.htaccess
35+
/pub/media/attribute/*
36+
!/pub/media/attribute/.htaccess
37+
/pub/media/analytics/*
2838
/pub/media/catalog/*
2939
!/pub/media/catalog/.htaccess
3040
/pub/media/customer/*
@@ -46,5 +56,7 @@ atlassian*
4656

4757
/var/*
4858
!/var/.htaccess
49-
/vendor
59+
/vendor/*
5060
!/vendor/.htaccess
61+
/generated/*
62+
!/generated/.htaccess

.htaccess

Lines changed: 73 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
DirectoryIndex index.php
3434

3535
<IfModule mod_php5.c>
36-
3736
############################################
3837
## adjust memory limit
3938

@@ -55,9 +54,30 @@
5554
## disable user agent verification to not break multiple image upload
5655

5756
php_flag suhosin.session.cryptua off
58-
5957
</IfModule>
58+
<IfModule mod_php7.c>
59+
############################################
60+
## adjust memory limit
61+
62+
php_value memory_limit 768M
63+
php_value max_execution_time 18000
64+
65+
############################################
66+
## disable automatic session start
67+
## before autoload was initialized
68+
69+
php_flag session.auto_start off
70+
71+
############################################
72+
## enable resulting html compression
73+
74+
#php_flag zlib.output_compression on
75+
76+
###########################################
77+
## disable user agent verification to not break multiple image upload
6078

79+
php_flag suhosin.session.cryptua off
80+
</IfModule>
6181
<IfModule mod_security.c>
6282
###########################################
6383
## disable POST processing to not break multiple image upload
@@ -75,7 +95,7 @@
7595
# Insert filter on all content
7696
###SetOutputFilter DEFLATE
7797
# Insert filter on selected content types only
78-
#AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript
98+
#AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript application/json image/svg+xml
7999

80100
# Netscape 4.x has some problems...
81101
#BrowserMatch ^Mozilla/4 gzip-only-text/html
@@ -103,6 +123,13 @@
103123

104124
</IfModule>
105125

126+
############################################
127+
## workaround for Apache 2.4.6 CentOS build when working via ProxyPassMatch with HHVM (or any other)
128+
## Please, set it on virtual host configuration level
129+
130+
## SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
131+
############################################
132+
106133
<IfModule mod_rewrite.c>
107134

108135
############################################
@@ -157,6 +184,7 @@
157184

158185
AddDefaultCharset Off
159186
#AddDefaultCharset UTF-8
187+
AddType 'text/html; charset=UTF-8' html
160188

161189
<IfModule mod_expires.c>
162190

@@ -172,7 +200,7 @@
172200

173201
###########################################
174202
## Deny access to root files to hide sensitive application information
175-
RedirectMatch 404 /\.git
203+
RedirectMatch 403 /\.git
176204

177205
<Files composer.json>
178206
order allow,deny
@@ -194,7 +222,7 @@
194222
order allow,deny
195223
deny from all
196224
</Files>
197-
<Files .php_cs>
225+
<Files .php_cs.dist>
198226
order allow,deny
199227
deny from all
200228
</Files>
@@ -210,10 +238,6 @@
210238
order allow,deny
211239
deny from all
212240
</Files>
213-
<Files CONTRIBUTOR_LICENSE_AGREEMENT.html>
214-
order allow,deny
215-
deny from all
216-
</Files>
217241
<Files COPYING.txt>
218242
order allow,deny
219243
deny from all
@@ -246,16 +270,52 @@
246270
order allow,deny
247271
deny from all
248272
</Files>
273+
<Files magento_umask>
274+
order allow,deny
275+
deny from all
276+
</Files>
277+
278+
# For 404s and 403s that aren't handled by the application, show plain 404 response
279+
ErrorDocument 404 /pub/errors/404.php
280+
ErrorDocument 403 /pub/errors/404.php
249281

250282
################################
251283
## If running in cluster environment, uncomment this
252284
## http://developer.yahoo.com/performance/rules.html#etags
253285

254286
#FileETag none
255287

256-
############################################
257-
## Add custom headers
288+
# ######################################################################
289+
# # INTERNET EXPLORER #
290+
# ######################################################################
291+
292+
# ----------------------------------------------------------------------
293+
# | Document modes |
294+
# ----------------------------------------------------------------------
295+
296+
# Force Internet Explorer 8/9/10 to render pages in the highest mode
297+
# available in the various cases when it may not.
298+
#
299+
# https://hsivonen.fi/doctype/#ie8
300+
#
301+
# (!) Starting with Internet Explorer 11, document modes are deprecated.
302+
# If your business still relies on older web apps and services that were
303+
# designed for older versions of Internet Explorer, you might want to
304+
# consider enabling `Enterprise Mode` throughout your company.
305+
#
306+
# https://msdn.microsoft.com/en-us/library/ie/bg182625.aspx#docmode
307+
# http://blogs.msdn.com/b/ie/archive/2014/04/02/stay-up-to-date-with-enterprise-mode-for-internet-explorer-11.aspx
308+
258309
<IfModule mod_headers.c>
259-
Header set X-Content-Type-Options "nosniff"
260-
Header set X-XSS-Protection "1; mode=block"
310+
311+
Header set X-UA-Compatible "IE=edge"
312+
313+
# `mod_headers` cannot match based on the content-type, however,
314+
# the `X-UA-Compatible` response header should be send only for
315+
# HTML documents and not for the other resources.
316+
317+
<FilesMatch "\.(appcache|atom|bbaw|bmp|crx|css|cur|eot|f4[abpv]|flv|geojson|gif|htc|ico|jpe?g|js|json(ld)?|m4[av]|manifest|map|mp4|oex|og[agv]|opus|otf|pdf|png|rdf|rss|safariextz|svgz?|swf|topojson|tt[cf]|txt|vcard|vcf|vtt|webapp|web[mp]|webmanifest|woff2?|xloc|xml|xpi)$">
318+
Header unset X-UA-Compatible
319+
</FilesMatch>
320+
261321
</IfModule>

.htaccess.sample

Lines changed: 56 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
############################################
2-
## uncomment the line below to enable developer mode
2+
## overrides deployment configuration mode value
3+
## use command bin/magento deploy:mode:set to switch modes
34

45
# SetEnv MAGE_MODE developer
56

@@ -31,8 +32,6 @@
3132

3233
DirectoryIndex index.php
3334

34-
<IfModule mod_php5.c>
35-
3635
############################################
3736
## adjust memory limit
3837

@@ -55,8 +54,6 @@
5554

5655
php_flag suhosin.session.cryptua off
5756

58-
</IfModule>
59-
6057
<IfModule mod_security.c>
6158
###########################################
6259
## disable POST processing to not break multiple image upload
@@ -74,7 +71,7 @@
7471
# Insert filter on all content
7572
###SetOutputFilter DEFLATE
7673
# Insert filter on selected content types only
77-
#AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript
74+
#AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript application/json image/svg+xml
7875

7976
# Netscape 4.x has some problems...
8077
#BrowserMatch ^Mozilla/4 gzip-only-text/html
@@ -102,6 +99,13 @@
10299

103100
</IfModule>
104101

102+
############################################
103+
## workaround for Apache 2.4.6 CentOS build when working via ProxyPassMatch with HHVM (or any other)
104+
## Please, set it on virtual host configuration level
105+
106+
## SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
107+
############################################
108+
105109
<IfModule mod_rewrite.c>
106110

107111
############################################
@@ -156,6 +160,7 @@
156160

157161
AddDefaultCharset Off
158162
#AddDefaultCharset UTF-8
163+
AddType 'text/html; charset=UTF-8' html
159164

160165
<IfModule mod_expires.c>
161166

@@ -171,7 +176,7 @@
171176

172177
###########################################
173178
## Deny access to root files to hide sensitive application information
174-
RedirectMatch 404 /\.git
179+
RedirectMatch 403 /\.git
175180

176181
<Files composer.json>
177182
order allow,deny
@@ -193,7 +198,7 @@
193198
order allow,deny
194199
deny from all
195200
</Files>
196-
<Files .php_cs>
201+
<Files .php_cs.dist>
197202
order allow,deny
198203
deny from all
199204
</Files>
@@ -209,10 +214,6 @@
209214
order allow,deny
210215
deny from all
211216
</Files>
212-
<Files CONTRIBUTOR_LICENSE_AGREEMENT.html>
213-
order allow,deny
214-
deny from all
215-
</Files>
216217
<Files COPYING.txt>
217218
order allow,deny
218219
deny from all
@@ -245,9 +246,52 @@
245246
order allow,deny
246247
deny from all
247248
</Files>
249+
<Files magento_umask>
250+
order allow,deny
251+
deny from all
252+
</Files>
253+
254+
# For 404s and 403s that aren't handled by the application, show plain 404 response
255+
ErrorDocument 404 /pub/errors/404.php
256+
ErrorDocument 403 /pub/errors/404.php
248257

249258
################################
250259
## If running in cluster environment, uncomment this
251260
## http://developer.yahoo.com/performance/rules.html#etags
252261

253262
#FileETag none
263+
264+
# ######################################################################
265+
# # INTERNET EXPLORER #
266+
# ######################################################################
267+
268+
# ----------------------------------------------------------------------
269+
# | Document modes |
270+
# ----------------------------------------------------------------------
271+
272+
# Force Internet Explorer 8/9/10 to render pages in the highest mode
273+
# available in the various cases when it may not.
274+
#
275+
# https://hsivonen.fi/doctype/#ie8
276+
#
277+
# (!) Starting with Internet Explorer 11, document modes are deprecated.
278+
# If your business still relies on older web apps and services that were
279+
# designed for older versions of Internet Explorer, you might want to
280+
# consider enabling `Enterprise Mode` throughout your company.
281+
#
282+
# https://msdn.microsoft.com/en-us/library/ie/bg182625.aspx#docmode
283+
# http://blogs.msdn.com/b/ie/archive/2014/04/02/stay-up-to-date-with-enterprise-mode-for-internet-explorer-11.aspx
284+
285+
<IfModule mod_headers.c>
286+
287+
Header set X-UA-Compatible "IE=edge"
288+
289+
# `mod_headers` cannot match based on the content-type, however,
290+
# the `X-UA-Compatible` response header should be send only for
291+
# HTML documents and not for the other resources.
292+
293+
<FilesMatch "\.(appcache|atom|bbaw|bmp|crx|css|cur|eot|f4[abpv]|flv|geojson|gif|htc|ico|jpe?g|js|json(ld)?|m4[av]|manifest|map|mp4|oex|og[agv]|opus|otf|pdf|png|rdf|rss|safariextz|svgz?|swf|topojson|tt[cf]|txt|vcard|vcf|vtt|webapp|web[mp]|webmanifest|woff2?|xloc|xml|xpi)$">
294+
Header unset X-UA-Compatible
295+
</FilesMatch>
296+
297+
</IfModule>

.php_cs

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

0 commit comments

Comments
 (0)