diff --git a/.htaccess b/.htaccess index af418c46d..b26c63bb5 100644 --- a/.htaccess +++ b/.htaccess @@ -18,9 +18,6 @@ Options -Indexes # Follow symbolic links in this directory. Options +FollowSymLinks -# Make Drupal handle any 404 errors. -ErrorDocument 404 /index.php - # Set the default handler. DirectoryIndex index.php index.html index.htm @@ -28,13 +25,14 @@ DirectoryIndex index.php index.html index.htm AddType image/svg+xml svg svgz AddEncoding gzip svgz -# Override PHP settings that cannot be changed at runtime. See +# Most of the following PHP settings cannot be changed at runtime. See # sites/default/default.settings.php and # Drupal\Core\DrupalKernel::bootEnvironment() for settings that can be # changed at runtime. # PHP 5, Apache 1 and 2. + php_value assert.active 0 php_flag session.auto_start off php_value mbstring.http_input pass php_value mbstring.http_output pass @@ -62,6 +60,14 @@ AddEncoding gzip svgz +# Set a fallback resource if mod_rewrite is not enabled. This allows Drupal to +# work without clean URLs. This requires Apache version >= 2.2.16. If Drupal is +# not accessed by the top level URL (i.e.: http://example.com/drupal/ instead of +# http://example.com/), the path to index.php will need to be adjusted. + + FallbackResource /index.php + + # Various rewrite rules. RewriteEngine on @@ -125,6 +131,9 @@ AddEncoding gzip svgz RewriteCond %{REQUEST_URI} !core RewriteRule ^ %1/core/%2 [L,QSA,R=301] + # Rewrite install.php during installation to see if mod_rewrite is working + RewriteRule ^core/install.php core/install.php?rewrite=ok [QSA,L] + # Pass all requests not referring directly to files in the filesystem to # index.php. RewriteCond %{REQUEST_FILENAME} !-f diff --git a/core/.gitignore b/core/.gitignore index 91bd4cdda..74b6a4c79 100644 --- a/core/.gitignore +++ b/core/.gitignore @@ -14,3 +14,6 @@ vendor/symfony/translation/Symfony/Component/Translation/* # PHPUnit provides some binary dependencies that are already available. vendor/phpunit/phpunit/build/dependencies + +# The PHAR file below contains CRLF characters that cause a problem with PIFR. +vendor/symfony/dependency-injection/Tests/Fixtures/includes/ProjectWithXsdExtensionInPhar.phar diff --git a/core/INSTALL.txt b/core/INSTALL.txt index 6ae05b4ec..514e528fe 100644 --- a/core/INSTALL.txt +++ b/core/INSTALL.txt @@ -18,7 +18,7 @@ Drupal requires: - A web server with PHP support, for example: - Apache 2.0 (or greater) (http://httpd.apache.org/). - Nginx 1.1 (or greater) (http://nginx.com/). -- PHP 5.4.5 (or greater) (http://php.net/). For better security support it is +- PHP 5.5.9 (or greater) (http://php.net/). For better security support it is recommended to update to at least 5.5.21 or 5.6.5. - One of the following databases: - MySQL 5.5.3 (or greater) (http://www.mysql.com/). @@ -121,34 +121,41 @@ INSTALLATION a. Missing files directory. - The install script will attempt to create a file storage directory in - the default location at sites/default/files (the location of the files + The install script will attempt to create a public file storage directory + in the default location at sites/default/files (the location of the files directory may be changed after Drupal is installed). - If auto-creation fails, you can make it work by changing permissions on - the sites/default directory so that the web server can create the files - directory within it for you. (If you are creating a multisite - installation, substitute the correct sites directory for sites/default; - see the Multisite Configuration section of this file, below.) + If auto-creation fails, you can create the directory yourself. (If you are + creating a multisite installation, substitute the correct sites directory + for sites/default; see the Multisite Configuration section of this file, + below.) Sample commands from a Unix/Linux command line: - For example, on a Unix/Linux command line, you can grant everyone + mkdir sites/default/files + chmod a+w sites/default/files + + Alternatively, you can make the install script work by changing + permissions on the sites/default directory. The web server can then + create the files directory within it for you. + + For example, on a Unix/Linux command line, you can you can grant everyone (including the web server) permission to write to the sites/default directory with this command: chmod a+w sites/default - Be sure to set the permissions back after the installation is finished! + Then re-run install.php (e.g. by clicking "try again" at the bottom of + the Requirements problem page. Once the files directory is created, you + will need to grant everyone (including the web server) permission to + write to it with this command: + + chmod a+w sites/default/files + + Be sure to set the permissions for the default directory back after the + installation is finished! (Leave the files directory writeable.) Sample command: chmod go-w sites/default - Alternatively, instead of allowing the web server to create the files - directory for you as described above, you can create it yourself. Sample - commands from a Unix/Linux command line: - - mkdir sites/default/files - chmod a+w sites/default/files - b. Missing settings file. Drupal will try to automatically create settings.php and services.yml diff --git a/core/MAINTAINERS.txt b/core/MAINTAINERS.txt index 40a6a8d1d..9408d5737 100644 --- a/core/MAINTAINERS.txt +++ b/core/MAINTAINERS.txt @@ -108,7 +108,6 @@ Database update system Entity system - Wolfgang Ziegler 'fago' https://www.drupal.org/u/fago - Nathaniel Catchpole 'catch' https://www.drupal.org/u/catch -- Franz Heinzmann 'Frando' https://www.drupal.org/u/frando - Sascha Grossenbacher 'Berdir' https://www.drupal.org/u/berdir Extension system @@ -128,7 +127,6 @@ Form system - Wolfgang Ziegler 'fago' https://www.drupal.org/u/fago - Daniel F. Kudwien 'sun' https://www.drupal.org/u/sun - Tim Plunkett 'tim.plunkett' https://www.drupal.org/u/tim.plunkett -- Franz Heinzmann 'Frando' https://www.drupal.org/u/frando Image system - Claudiu Cristea 'claudiu.cristea' https://www.drupal.org/u/claudiu.cristea @@ -182,7 +180,6 @@ Queue system Render system - Moshe Weitzman 'moshe weitzman' https://www.drupal.org/u/moshe-weitzman - Alex Bronstein 'effulgentsia' https://www.drupal.org/u/effulgentsia -- Franz Heinzmann 'Frando' https://www.drupal.org/u/frando Request processing system - Larry Garfield 'Crell' https://www.drupal.org/u/crell @@ -298,7 +295,8 @@ Configuration Translation module Contact module - Lee Rowlands 'larowlan' https://www.drupal.org/u/larowlan -- Tim Eisenhuth 'tim-e' https://www.drupal.org/u/tim-e +- Jibran Ijaz 'jibran' https://www.drupal.org/u/jibran +- Andrey Postnikov 'andypost' https://www.drupal.org/u/andypost Content Translation module - Francesco Placella 'plach' https://www.drupal.org/u/plach diff --git a/core/UPGRADE.txt b/core/UPGRADE.txt index 21611dda1..5394a4eae 100644 --- a/core/UPGRADE.txt +++ b/core/UPGRADE.txt @@ -67,6 +67,9 @@ following the instructions in the INTRODUCTION section at the top of this file: Sometimes an update includes changes to default.settings.php (this will be noted in the release notes). If that's the case, follow these steps: + - Locate your settings.php file in the /sites/* directory. (Typically + sites/default.) + - Make a backup copy of your settings.php file, with a different file name. - Make a copy of the new default.settings.php file, and name the copy @@ -77,6 +80,13 @@ following the instructions in the INTRODUCTION section at the top of this file: database information, and you will also want to copy in any other customizations you have added. + You can find the release notes for your version at + https://www.drupal.org/project/drupal. At bottom of the project page under + "Downloads" use the link for your version of Drupal to view the release + notes. If your version is not listed, use the 'View all releases' link. From + this page you can scroll down or use the filter to find your version and its + release notes. + 4. Download the latest Drupal 8.x release from https://www.drupal.org to a directory outside of your web root. Extract the archive and copy the files into your Drupal directory. diff --git a/core/assets/vendor/backbone/backbone-min.js b/core/assets/vendor/backbone/backbone-min.js index 8ea4b13d3..f29903b1a 100644 --- a/core/assets/vendor/backbone/backbone-min.js +++ b/core/assets/vendor/backbone/backbone-min.js @@ -1,2 +1,2 @@ -(function(t,e){if(typeof define==="function"&&define.amd){define(["underscore","jquery","exports"],function(i,r,s){t.Backbone=e(t,s,i,r)})}else if(typeof exports!=="undefined"){var i=require("underscore");e(t,exports,i)}else{t.Backbone=e(t,{},t._,t.jQuery||t.Zepto||t.ender||t.$)}})(this,function(t,e,i,r){var s=t.Backbone;var n=[];var a=n.push;var o=n.slice;var h=n.splice;e.VERSION="1.1.2";e.$=r;e.noConflict=function(){t.Backbone=s;return this};e.emulateHTTP=false;e.emulateJSON=false;var u=e.Events={on:function(t,e,i){if(!c(this,"on",t,[e,i])||!e)return this;this._events||(this._events={});var r=this._events[t]||(this._events[t]=[]);r.push({callback:e,context:i,ctx:i||this});return this},once:function(t,e,r){if(!c(this,"once",t,[e,r])||!e)return this;var s=this;var n=i.once(function(){s.off(t,n);e.apply(this,arguments)});n._callback=e;return this.on(t,n,r)},off:function(t,e,r){var s,n,a,o,h,u,l,f;if(!this._events||!c(this,"off",t,[e,r]))return this;if(!t&&!e&&!r){this._events=void 0;return this}o=t?[t]:i.keys(this._events);for(h=0,u=o.length;h").attr(t);this.setElement(r,false)}else{this.setElement(i.result(this,"el"),false)}}});e.sync=function(t,r,s){var n=T[t];i.defaults(s||(s={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var a={type:n,dataType:"json"};if(!s.url){a.url=i.result(r,"url")||M()}if(s.data==null&&r&&(t==="create"||t==="update"||t==="patch")){a.contentType="application/json";a.data=JSON.stringify(s.attrs||r.toJSON(s))}if(s.emulateJSON){a.contentType="application/x-www-form-urlencoded";a.data=a.data?{model:a.data}:{}}if(s.emulateHTTP&&(n==="PUT"||n==="DELETE"||n==="PATCH")){a.type="POST";if(s.emulateJSON)a.data._method=n;var o=s.beforeSend;s.beforeSend=function(t){t.setRequestHeader("X-HTTP-Method-Override",n);if(o)return o.apply(this,arguments)}}if(a.type!=="GET"&&!s.emulateJSON){a.processData=false}if(a.type==="PATCH"&&k){a.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")}}var h=s.xhr=e.ajax(i.extend(a,s));r.trigger("request",r,h,s);return h};var k=typeof window!=="undefined"&&!!window.ActiveXObject&&!(window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent);var T={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var $=e.Router=function(t){t||(t={});if(t.routes)this.routes=t.routes;this._bindRoutes();this.initialize.apply(this,arguments)};var S=/\((.*?)\)/g;var H=/(\(\?)?:\w+/g;var A=/\*\w+/g;var I=/[\-{}\[\]+?.,\\\^$|#\s]/g;i.extend($.prototype,u,{initialize:function(){},route:function(t,r,s){if(!i.isRegExp(t))t=this._routeToRegExp(t);if(i.isFunction(r)){s=r;r=""}if(!s)s=this[r];var n=this;e.history.route(t,function(i){var a=n._extractParameters(t,i);n.execute(s,a);n.trigger.apply(n,["route:"+r].concat(a));n.trigger("route",r,a);e.history.trigger("route",n,r,a)});return this},execute:function(t,e){if(t)t.apply(this,e)},navigate:function(t,i){e.history.navigate(t,i);return this},_bindRoutes:function(){if(!this.routes)return;this.routes=i.result(this,"routes");var t,e=i.keys(this.routes);while((t=e.pop())!=null){this.route(t,this.routes[t])}},_routeToRegExp:function(t){t=t.replace(I,"\\$&").replace(S,"(?:$1)?").replace(H,function(t,e){return e?t:"([^/?]+)"}).replace(A,"([^?]*?)");return new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var r=t.exec(e).slice(1);return i.map(r,function(t,e){if(e===r.length-1)return t||null;return t?decodeURIComponent(t):null})}});var N=e.History=function(){this.handlers=[];i.bindAll(this,"checkUrl");if(typeof window!=="undefined"){this.location=window.location;this.history=window.history}};var R=/^[#\/]|\s+$/g;var O=/^\/+|\/+$/g;var P=/msie [\w.]+/;var C=/\/$/;var j=/#.*$/;N.started=false;i.extend(N.prototype,u,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(t,e){if(t==null){if(this._hasPushState||!this._wantsHashChange||e){t=decodeURI(this.location.pathname+this.location.search);var i=this.root.replace(C,"");if(!t.indexOf(i))t=t.slice(i.length)}else{t=this.getHash()}}return t.replace(R,"")},start:function(t){if(N.started)throw new Error("Backbone.history has already been started");N.started=true;this.options=i.extend({root:"/"},this.options,t);this.root=this.options.root;this._wantsHashChange=this.options.hashChange!==false;this._wantsPushState=!!this.options.pushState;this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var r=this.getFragment();var s=document.documentMode;var n=P.exec(navigator.userAgent.toLowerCase())&&(!s||s<=7);this.root=("/"+this.root+"/").replace(O,"/");if(n&&this._wantsHashChange){var a=e.$('