Skip to content

Commit

Permalink
Merge branch '4.0-dev' into router_no_default_J4
Browse files Browse the repository at this point in the history
  • Loading branch information
csthomas committed Nov 29, 2018
2 parents fe6b983 + 78b418a commit d19a37c
Show file tree
Hide file tree
Showing 1,412 changed files with 12,263 additions and 9,019 deletions.
1 change: 1 addition & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ pipeline:
# needed for system testing
- composer update joomla/test-system --no-progress --no-suggest
- composer update joomla-projects/selenium-server-standalone --no-progress --no-suggest
- composer update joomla-projects/joomla-browser --no-progress --no-suggest
- npm install --unsafe-perm

rebuild-cache:
Expand Down
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
# TODO: Fix the webcomponents codestyle then also allow linting on them
*.js
!*.es6.js
administrator/components/com_media/node_modules/uri-js/node_modules/punycode/punycode.es6.js
*.vue
39 changes: 39 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Security Policies and Procedures

This document outlines security procedures and policies for the `Joomla! Project`.

* [Reporting a Bug](#reporting-a-bug)
* [Response Handling](#response-handling)
* [Security Announcement Policy](#security-announcement-policy)
* [Further Details on the Joomla! Security Policies](https://security.joomla.org)

## Reporting a Bug

The `Joomla` team and community take all security bugs in `Joomla` seriously.

The Joomla! Project takes security vulnerabilities very seriously. As such, the Joomla! Security Strike Team (JSST) oversees the project's security issues and follows some specific procedures when dealing with these issues.

If you find a possible vulnerability, please report it to the JSST using the [online form](https://developer.joomla.org/security/contact-the-team.html) or via email at security@joomla.org

We maintain a list of [GPG keys and addresses](https://developer.joomla.org/security/gpg-keys.html) for the security@joomla.org address and members of the JSST to allow signed and encrypted communications.

To report an issue in a Joomla! extension, please submit it to the [Vulnerable Extensions List.](https://vel.joomla.org/submit-vel)

For support with a site which has been attacked, please visit the [Joomla! Forum.](https://forum.joomla.org/viewforum.php?f=714)

Thank you for improving the security of `Joomla`.

## Response Handling

The JSST aims to ensure all issues are handled in a timely manner and for clear communication between the team and issue reporters. As such, we have established the following guidelines for responding to issue reports:

* Within 24 hours every report gets acknowledged
* Within 7 days every report gets a further response stating either
* the issue is closed (and why)
* the issue is still under investigation; if needed, additional information will be requested
* Within 21 days every report must be resolved unless there are exceptional circumstances requiring additional time

## Security Announcement Policy
* Verified vulnerabilities will only be publicly announced AFTER a release is issued which fixes the vulnerability.
* All announcements will contain as much information as possible, but will NOT contain step-by-step instructions for the vulnerability.
* The `Joomla! Project` will properly credit individuals and/or organizations who responsibly disclose security issues to the JSST. You can indicate the way you would like to be referred to in the advisory about the vulnerability. Our preference is to use full names. If you do not specify then we will use the contact name associated with the email address the report was received from. You can also request a pseudonym or having your name withheld.
6 changes: 3 additions & 3 deletions administrator/components/com_admin/Model/HelpModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@

defined('_JEXEC') or die;

use Joomla\CMS\Factory;
use Joomla\CMS\Filesystem\Folder;
use Joomla\CMS\Help\Help;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\Model\BaseDatabaseModel;
use Joomla\String\StringHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Filesystem\Folder;
use Joomla\CMS\Factory;

/**
* Admin Component Help Model
Expand Down
4 changes: 2 additions & 2 deletions administrator/components/com_admin/Model/ProfileModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
defined('_JEXEC') or die;

use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Multilanguage;
use Joomla\CMS\Plugin\PluginHelper;
use Joomla\Component\Users\Administrator\Model\UserModel;
use Joomla\CMS\Factory;

/**
* User model.
Expand All @@ -27,7 +27,7 @@ class ProfileModel extends UserModel
/**
* Method to get the record form.
*
* @param array $data An optional array of data for the form to interogate.
* @param array $data An optional array of data for the form to interrogate.
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
*
* @return \JForm A \JForm object on success, false on failure
Expand Down
8 changes: 4 additions & 4 deletions administrator/components/com_admin/Model/SysinfoModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
defined('_JEXEC') or die;

use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Log\Log;
use Joomla\CMS\MVC\Model\BaseDatabaseModel;
use Joomla\CMS\Version;
use Joomla\Registry\Registry;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Log\Log;
use Joomla\CMS\Factory;

/**
* Model for the display of system information.
Expand Down Expand Up @@ -168,7 +168,7 @@ class SysInfoModel extends BaseDatabaseModel
/**
* Remove sections of data marked as private in the privateSettings
*
* @param array $dataArray Array with data tha may contain private informati
* @param array $dataArray Array with data that may contain private information
* @param string $dataType Type of data to search for a specific section in the privateSettings array
*
* @return array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
defined('_JEXEC') or die;

use Joomla\CMS\Language\Text;
use Joomla\CMS\Log\Log;

/**
* Utility class working with phpsetting
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_admin/View/Help/HtmlView.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

defined('_JEXEC') or die;

use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
use Joomla\CMS\Toolbar\ToolbarHelper;

/**
Expand Down
6 changes: 3 additions & 3 deletions administrator/components/com_admin/View/Profile/HtmlView.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

defined('_JEXEC') or die;

use Joomla\CMS\Toolbar\ToolbarHelper;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
use Joomla\CMS\Toolbar\ToolbarHelper;

/**
* View class to allow users edit their own profile.
Expand Down
6 changes: 3 additions & 3 deletions administrator/components/com_admin/View/Sysinfo/HtmlView.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
defined('_JEXEC') or die;

use Joomla\CMS\Access\Exception\Notallowed;
use Joomla\CMS\Toolbar\ToolbarHelper;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Factory;
use Joomla\CMS\Toolbar\ToolbarHelper;

/**
* Sysinfo View class for the Admin component
Expand Down
4 changes: 2 additions & 2 deletions administrator/components/com_admin/View/Sysinfo/JsonView.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
defined('_JEXEC') or die;

use Joomla\CMS\Access\Exception\Notallowed;
use Joomla\CMS\MVC\View\AbstractView;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\View\AbstractView;

/**
* Sysinfo View class for the Admin component
Expand Down
4 changes: 2 additions & 2 deletions administrator/components/com_admin/View/Sysinfo/TextView.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
defined('_JEXEC') or die;

use Joomla\CMS\Access\Exception\Notallowed;
use Joomla\CMS\MVC\View\AbstractView;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\View\AbstractView;

/**
* Sysinfo View class for the Admin component
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@

defined('_JEXEC') or die;

use Joomla\Registry\Registry;
use Joomla\Utilities\ArrayHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Client\ClientHelper;
use Joomla\CMS\Factory;
use Joomla\CMS\Filesystem\File;
use Joomla\CMS\Filesystem\Path;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\Registry\Registry;
use Joomla\Utilities\ArrayHelper;

/**
* Checks if the eAccelerator caching method is enabled.
Expand Down
8 changes: 4 additions & 4 deletions administrator/components/com_admin/script.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@

defined('_JEXEC') or die;

use Joomla\Database\UTF8MB4SupportInterface;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Extension\ExtensionHelper;
use Joomla\CMS\Factory;
use Joomla\CMS\Filesystem\File;
use Joomla\CMS\Log\Log;
use Joomla\CMS\Filesystem\Folder;
use Joomla\CMS\Factory;
use Joomla\CMS\Installer\Installer;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Log\Log;
use Joomla\Database\UTF8MB4SupportInterface;

/**
* Script file of Joomla CMS
Expand Down
16 changes: 8 additions & 8 deletions administrator/components/com_admin/services/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@

defined('_JEXEC') or die;

use Joomla\CMS\Dispatcher\DispatcherFactoryInterface;
use Joomla\CMS\Dispatcher\ComponentDispatcherFactoryInterface;
use Joomla\CMS\Extension\ComponentInterface;
use Joomla\CMS\Extension\Service\Provider\DispatcherFactory;
use Joomla\CMS\Extension\Service\Provider\MVCFactoryFactory;
use Joomla\CMS\Extension\Service\Provider\ComponentDispatcherFactory;
use Joomla\CMS\Extension\Service\Provider\MVCFactory;
use Joomla\CMS\HTML\Registry;
use Joomla\CMS\MVC\Factory\MVCFactoryFactoryInterface;
use Joomla\CMS\MVC\Factory\MVCFactoryInterface;
use Joomla\Component\Admin\Administrator\Extension\AdminComponent;
use Joomla\DI\Container;
use Joomla\DI\ServiceProviderInterface;
Expand All @@ -37,16 +37,16 @@
*/
public function register(Container $container)
{
$container->registerServiceProvider(new MVCFactoryFactory('\\Joomla\\Component\\Admin'));
$container->registerServiceProvider(new DispatcherFactory('\\Joomla\\Component\\Admin'));
$container->registerServiceProvider(new MVCFactory('\\Joomla\\Component\\Admin'));
$container->registerServiceProvider(new ComponentDispatcherFactory('\\Joomla\\Component\\Admin'));

$container->set(
ComponentInterface::class,
function (Container $container)
{
$component = new AdminComponent($container->get(DispatcherFactoryInterface::class));
$component = new AdminComponent($container->get(ComponentDispatcherFactoryInterface::class));

$component->setMvcFactoryFactory($container->get(MVCFactoryFactoryInterface::class));
$component->setMVCFactory($container->get(MVCFactoryInterface::class));
$component->setRegistry($container->get(Registry::class));

return $component;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ CREATE TABLE IF NOT EXISTS `#__workflow_associations` (
`item_id` int(10) NOT NULL DEFAULT 0 COMMENT 'Extension table id value',
`stage_id` int(10) NOT NULL COMMENT 'Foreign Key to #__workflow_stages.id',
`extension` varchar(50) NOT NULL,
PRIMARY KEY (`item_id`, `stage_id`, `extension`),
PRIMARY KEY (`item_id`, `extension`),
KEY `idx_item_stage_extension` (`item_id`, `stage_id`, `extension`),
KEY `idx_item_id` (`item_id`),
KEY `idx_stage_id` (`stage_id`),
KEY `idx_extension` (`extension`)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UPDATE `#__content_types` SET `router` = '' WHERE `type_alias` = 'com_users.user';
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ CREATE TABLE IF NOT EXISTS "#__workflow_associations" (
"item_id" bigint DEFAULT 0 NOT NULL,
"stage_id" bigint DEFAULT 0 NOT NULL,
"extension" varchar(50) NOT NULL,
PRIMARY KEY ("item_id", "stage_id", "extension")
PRIMARY KEY ("item_id", "extension")
);
CREATE INDEX "#__workflow_associations_idx_item_stage_extension" ON "#__workflow_associations" ("item_id", "stage_id", "extension");
CREATE INDEX "#__workflow_associations_idx_item_id" ON "#__workflow_associations" ("item_id");
CREATE INDEX "#__workflow_associations_idx_stage_id" ON "#__workflow_associations" ("stage_id");
CREATE INDEX "#__workflow_associations_idx_extension" ON "#__workflow_associations" ("extension");
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UPDATE "#__content_types" SET "router" = '' WHERE "type_alias" = 'com_users.user';
4 changes: 2 additions & 2 deletions administrator/components/com_admin/tmpl/help/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

defined('_JEXEC') or die;

use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Help\Help;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;

?>
<form action="<?php echo Route::_('index.php?option=com_admin&amp;view=help'); ?>" method="post" name="adminForm" id="adminForm">
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_admin/tmpl/help/langforum.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

defined('_JEXEC') or die;

use Joomla\CMS\Language\Text;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;

Factory::getLanguage()->load('mod_menu', JPATH_ADMINISTRATOR, null, false, true);

Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_admin/tmpl/profile/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

defined('_JEXEC') or die;

use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
use Joomla\CMS\HTML\HTMLHelper;

HTMLHelper::_('behavior.formvalidator');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

defined('_JEXEC') or die;

use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
use Joomla\CMS\HTML\HTMLHelper;

HTMLHelper::_('behavior.tabstate');
?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

defined('_JEXEC') or die;

use Joomla\CMS\Language\Text;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;

?>
<fieldset class="adminform">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

defined('_JEXEC') or die;

use Joomla\CMS\Language\Text;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;

?>
<fieldset class="adminform">
Expand Down Expand Up @@ -86,7 +86,7 @@
<?php echo Text::_('COM_ADMIN_SESSION_AUTO_START'); ?>
</th>
<td>
<?php echo HTMLHelper::_('phpsetting.integer', $this->php_settings['session.auto_start']); ?>
<?php echo (int) $this->php_settings['session.auto_start']; ?>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -142,7 +142,7 @@
<?php echo Text::_('COM_ADMIN_MAX_INPUT_VARS'); ?>
</th>
<td>
<?php echo HTMLHelper::_('phpsetting.integer', $this->php_settings['max_input_vars']); ?>
<?php echo (int) $this->php_settings['max_input_vars']; ?>
</td>
</tr>
</tbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

defined('_JEXEC') or die;

use Joomla\CMS\Language\Text;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;

?>
<fieldset class="adminform">
Expand Down Expand Up @@ -47,7 +47,7 @@
<td>
<?php echo $this->info['dbserver']; ?>
</td>
</tr>
</tr>
<tr>
<th scope="row">
<?php echo Text::_('COM_ADMIN_DATABASE_VERSION'); ?>
Expand Down
Loading

0 comments on commit d19a37c

Please sign in to comment.