Skip to content

Commit f94353e

Browse files
committed
Merge remote-tracking branch 'main-ce/develop' into MAGETWO-52844-2.1
2 parents fed26d2 + f7febb4 commit f94353e

File tree

1,115 files changed

+18670
-10935
lines changed

Some content is hidden

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

1,115 files changed

+18670
-10935
lines changed

.htaccess

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
# Insert filter on all content
102102
###SetOutputFilter DEFLATE
103103
# Insert filter on selected content types only
104-
#AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript
104+
#AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript application/json image/svg+xml
105105

106106
# Netscape 4.x has some problems...
107107
#BrowserMatch ^Mozilla/4 gzip-only-text/html
@@ -190,6 +190,7 @@
190190

191191
AddDefaultCharset Off
192192
#AddDefaultCharset UTF-8
193+
AddType 'text/html; charset=UTF-8' html
193194

194195
<IfModule mod_expires.c>
195196

@@ -205,7 +206,7 @@
205206

206207
###########################################
207208
## Deny access to root files to hide sensitive application information
208-
RedirectMatch 404 /\.git
209+
RedirectMatch 403 /\.git
209210

210211
<Files composer.json>
211212
order allow,deny
@@ -276,12 +277,51 @@
276277
deny from all
277278
</Files>
278279
<Files magento_umask>
279-
order allow,deny
280-
deny from all
280+
order allow,deny
281+
deny from all
281282
</Files>
282283

284+
# For 404s and 403s that aren't handled by the application, show plain 404 response
285+
ErrorDocument 404 /pub/errors/404.php
286+
ErrorDocument 403 /pub/errors/404.php
287+
283288
################################
284289
## If running in cluster environment, uncomment this
285290
## http://developer.yahoo.com/performance/rules.html#etags
286291

287292
#FileETag none
293+
294+
# ######################################################################
295+
# # INTERNET EXPLORER #
296+
# ######################################################################
297+
298+
# ----------------------------------------------------------------------
299+
# | Document modes |
300+
# ----------------------------------------------------------------------
301+
302+
# Force Internet Explorer 8/9/10 to render pages in the highest mode
303+
# available in the various cases when it may not.
304+
#
305+
# https://hsivonen.fi/doctype/#ie8
306+
#
307+
# (!) Starting with Internet Explorer 11, document modes are deprecated.
308+
# If your business still relies on older web apps and services that were
309+
# designed for older versions of Internet Explorer, you might want to
310+
# consider enabling `Enterprise Mode` throughout your company.
311+
#
312+
# https://msdn.microsoft.com/en-us/library/ie/bg182625.aspx#docmode
313+
# http://blogs.msdn.com/b/ie/archive/2014/04/02/stay-up-to-date-with-enterprise-mode-for-internet-explorer-11.aspx
314+
315+
<IfModule mod_headers.c>
316+
317+
Header set X-UA-Compatible "IE=edge"
318+
319+
# `mod_headers` cannot match based on the content-type, however,
320+
# the `X-UA-Compatible` response header should be send only for
321+
# HTML documents and not for the other resources.
322+
323+
<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)$">
324+
Header unset X-UA-Compatible
325+
</FilesMatch>
326+
327+
</IfModule>

.htaccess.sample

Lines changed: 70 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
############################################
2-
## Optional override of deployment mode. We recommend you use the
3-
## command bin/magento deploy:mode:set to switch modes instead
4-
# SetEnv MAGE_MODE default # or production or developer
2+
## overrides deployment configuration mode value
3+
## use command bin/magento deploy:mode:set to switch modes
4+
5+
# SetEnv MAGE_MODE developer
56

67
############################################
7-
## Uncomment these lines for CGI mode.
8-
## Make sure to specify the correct cgi php binary file name
8+
## uncomment these lines for CGI mode
9+
## make sure to specify the correct cgi php binary file name
910
## it might be /cgi-bin/php-cgi
1011

1112
# Action php5-cgi /cgi-bin/php5-cgi
@@ -16,42 +17,42 @@
1617

1718
# Options -MultiViews
1819

19-
## You might also need to add this line to php.ini
20+
## you might also need to add this line to php.ini
2021
## cgi.fix_pathinfo = 1
21-
## If it still doesn't work, rename php.ini to php5.ini
22+
## if it still doesn't work, rename php.ini to php5.ini
2223

2324
############################################
24-
## This line is specific for 1and1 hosting
25+
## this line is specific for 1and1 hosting
2526

2627
#AddType x-mapp-php5 .php
2728
#AddHandler x-mapp-php5 .php
2829

2930
############################################
30-
## Default index file
31+
## default index file
3132

3233
DirectoryIndex index.php
3334

3435
<IfModule mod_php5.c>
3536

3637
############################################
37-
## Adjust memory limit
38+
## adjust memory limit
3839

3940
php_value memory_limit 768M
4041
php_value max_execution_time 18000
4142

4243
############################################
43-
## Disable automatic session start
44+
## disable automatic session start
4445
## before autoload was initialized
4546

4647
php_flag session.auto_start off
4748

4849
############################################
49-
## Enable resulting html compression
50+
## enable resulting html compression
5051

5152
#php_flag zlib.output_compression on
5253

5354
###########################################
54-
## Disable user agent verification to not break multiple image upload
55+
## disable user agent verification to not break multiple image upload
5556

5657
php_flag suhosin.session.cryptua off
5758

@@ -60,32 +61,32 @@
6061
<IfModule mod_php7.c>
6162

6263
############################################
63-
## Adjust memory limit
64+
## adjust memory limit
6465

6566
php_value memory_limit 768M
6667
php_value max_execution_time 18000
6768

6869
############################################
69-
## Disable automatic session start
70+
## disable automatic session start
7071
## before autoload was initialized
7172

7273
php_flag session.auto_start off
7374

7475
############################################
75-
## Enable resulting html compression
76+
## enable resulting html compression
7677

7778
#php_flag zlib.output_compression on
7879

7980
###########################################
80-
## Disable user agent verification to not break multiple image upload
81+
## disable user agent verification to not break multiple image upload
8182

8283
php_flag suhosin.session.cryptua off
8384

8485
</IfModule>
8586

8687
<IfModule mod_security.c>
8788
###########################################
88-
## Disable POST processing to not break multiple image upload
89+
## disable POST processing to not break multiple image upload
8990

9091
SecFilterEngine Off
9192
SecFilterScanPOST Off
@@ -94,13 +95,13 @@
9495
<IfModule mod_deflate.c>
9596

9697
############################################
97-
## Enable apache served files compression
98+
## enable apache served files compression
9899
## http://developer.yahoo.com/performance/rules.html#gzip
99100

100101
# Insert filter on all content
101102
###SetOutputFilter DEFLATE
102103
# Insert filter on selected content types only
103-
#AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript
104+
#AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript application/json image/svg+xml
104105

105106
# Netscape 4.x has some problems...
106107
#BrowserMatch ^Mozilla/4 gzip-only-text/html
@@ -122,14 +123,14 @@
122123
<IfModule mod_ssl.c>
123124

124125
############################################
125-
## Make HTTPS env vars available for CGI mode
126+
## make HTTPS env vars available for CGI mode
126127

127128
SSLOptions StdEnvVars
128129

129130
</IfModule>
130131

131132
############################################
132-
## Workaround for Apache 2.4.6 CentOS build when working via ProxyPassMatch with HHVM (or any other)
133+
## workaround for Apache 2.4.6 CentOS build when working via ProxyPassMatch with HHVM (or any other)
133134
## Please, set it on virtual host configuration level
134135

135136
## SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
@@ -138,19 +139,19 @@
138139
<IfModule mod_rewrite.c>
139140

140141
############################################
141-
## Enable rewrites
142+
## enable rewrites
142143

143144
Options +FollowSymLinks
144145
RewriteEngine on
145146

146147
############################################
147-
## You can put here your magento root folder
148+
## you can put here your magento root folder
148149
## path relative to web root
149150

150151
#RewriteBase /magento/
151152

152153
############################################
153-
## Workaround for HTTP authorization
154+
## workaround for HTTP authorization
154155
## in CGI environment
155156

156157
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
@@ -162,21 +163,21 @@
162163
RewriteRule .* - [L,R=405]
163164

164165
############################################
165-
## Redirect for mobile user agents
166+
## redirect for mobile user agents
166167

167168
#RewriteCond %{REQUEST_URI} !^/mobiledirectoryhere/.*$
168169
#RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC]
169170
#RewriteRule ^(.*)$ /mobiledirectoryhere/ [L,R=302]
170171

171172
############################################
172-
## Never rewrite for existing files, directories and links
173+
## never rewrite for existing files, directories and links
173174

174175
RewriteCond %{REQUEST_FILENAME} !-f
175176
RewriteCond %{REQUEST_FILENAME} !-d
176177
RewriteCond %{REQUEST_FILENAME} !-l
177178

178179
############################################
179-
## Rewrite everything else to index.php
180+
## rewrite everything else to index.php
180181

181182
RewriteRule .* index.php [L]
182183

@@ -189,6 +190,7 @@
189190

190191
AddDefaultCharset Off
191192
#AddDefaultCharset UTF-8
193+
AddType 'text/html; charset=UTF-8' html
192194

193195
<IfModule mod_expires.c>
194196

@@ -204,7 +206,7 @@
204206

205207
###########################################
206208
## Deny access to root files to hide sensitive application information
207-
RedirectMatch 404 /\.git
209+
RedirectMatch 403 /\.git
208210

209211
<Files composer.json>
210212
order allow,deny
@@ -279,8 +281,47 @@
279281
deny from all
280282
</Files>
281283

284+
# For 404s and 403s that aren't handled by the application, show plain 404 response
285+
ErrorDocument 404 /pub/errors/404.php
286+
ErrorDocument 403 /pub/errors/404.php
287+
282288
################################
283289
## If running in cluster environment, uncomment this
284290
## http://developer.yahoo.com/performance/rules.html#etags
285291

286292
#FileETag none
293+
294+
# ######################################################################
295+
# # INTERNET EXPLORER #
296+
# ######################################################################
297+
298+
# ----------------------------------------------------------------------
299+
# | Document modes |
300+
# ----------------------------------------------------------------------
301+
302+
# Force Internet Explorer 8/9/10 to render pages in the highest mode
303+
# available in the various cases when it may not.
304+
#
305+
# https://hsivonen.fi/doctype/#ie8
306+
#
307+
# (!) Starting with Internet Explorer 11, document modes are deprecated.
308+
# If your business still relies on older web apps and services that were
309+
# designed for older versions of Internet Explorer, you might want to
310+
# consider enabling `Enterprise Mode` throughout your company.
311+
#
312+
# https://msdn.microsoft.com/en-us/library/ie/bg182625.aspx#docmode
313+
# http://blogs.msdn.com/b/ie/archive/2014/04/02/stay-up-to-date-with-enterprise-mode-for-internet-explorer-11.aspx
314+
315+
<IfModule mod_headers.c>
316+
317+
Header set X-UA-Compatible "IE=edge"
318+
319+
# `mod_headers` cannot match based on the content-type, however,
320+
# the `X-UA-Compatible` response header should be send only for
321+
# HTML documents and not for the other resources.
322+
323+
<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)$">
324+
Header unset X-UA-Compatible
325+
</FilesMatch>
326+
327+
</IfModule>

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,23 @@ addons:
99
- postfix
1010
language: php
1111
php:
12-
- 5.5
1312
- 5.6
1413
- 7.0
1514
env:
1615
global:
1716
- COMPOSER_BIN_DIR=~/bin
18-
- INTEGRATION_SETS=2
17+
- INTEGRATION_SETS=3
1918
matrix:
2019
- TEST_SUITE=unit
2120
- TEST_SUITE=integration INTEGRATION_INDEX=1
2221
- TEST_SUITE=integration INTEGRATION_INDEX=2
22+
- TEST_SUITE=integration INTEGRATION_INDEX=3
2323
- TEST_SUITE=static
2424
cache:
2525
apt: true
2626
directories: $HOME/.composer/cache
2727
matrix:
2828
exclude:
29-
- php: 5.6
30-
env: TEST_SUITE=static
3129
- php: 7.0
3230
env: TEST_SUITE=static
3331
before_install: ./dev/travis/before_install.sh

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2.1.0
2+
=============
3+
To get detailed information about changes in Magento 2.1.0, please visit [Magento Community Edition (CE) Release Notes](http://devdocs.magento.com/guides/v2.1/release-notes/ReleaseNotes2.1.0CE.html "Magento Community Edition (CE) Release Notes")
4+
15
2.0.0
26
=============
37
* Fixed bugs:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Use the following table to verify you have the correct prerequisites to install
3333
<td><a href="http://devdocs.magento.com/guides/v2.0/install-gde/prereq/apache.html">Apache</a></td>
3434
</tr>
3535
<tr>
36-
<td>PHP ~5.5.22 or 5.6.x</td>
36+
<td>PHP 5.6.x, 7.0.2 or 7.0.6</td>
3737
<td><code>php -v</code></td>
3838
<td><a href="http://devdocs.magento.com/guides/v2.0/install-gde/prereq/php-ubuntu.html">PHP Ubuntu</a><br><a href="http://devdocs.magento.com/guides/v2.0/install-gde/prereq/php-centos.html">PHP CentOS</a></td>
3939
</tr>

app/bootstrap.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
#ini_set('display_errors', 1);
1212

1313
/* PHP version validation */
14-
if (!defined('PHP_VERSION_ID') || PHP_VERSION_ID < 50522) {
14+
if (!defined('PHP_VERSION_ID') || !(PHP_VERSION_ID >= 50600 && PHP_VERSION_ID < 50700 || PHP_VERSION_ID === 70002 || PHP_VERSION_ID >= 70006)) {
1515
if (PHP_SAPI == 'cli') {
16-
echo 'Magento supports PHP 5.5.22 or later. ' .
16+
echo 'Magento supports PHP 5.6, 7.0.2, and 7.0.6 or later. ' .
1717
'Please read http://devdocs.magento.com/guides/v1.0/install-gde/system-requirements.html';
1818
} else {
1919
echo <<<HTML
2020
<div style="font:12px/1.35em arial, helvetica, sans-serif;">
21-
<p>Magento supports PHP 5.5.22 or later. Please read
21+
<p>Magento supports PHP 5.6, 7.0.2, and 7.0.6 or later. Please read
2222
<a target="_blank" href="http://devdocs.magento.com/guides/v1.0/install-gde/system-requirements.html">
2323
Magento System Requirements</a>.
2424
</div>

0 commit comments

Comments
 (0)