Skip to content

Commit

Permalink
Release 5.2.0 Beta 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackwar committed Aug 18, 2024
1 parent 71b41e8 commit 406fcdd
Show file tree
Hide file tree
Showing 49 changed files with 244 additions and 106 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class HtmlView extends BaseHtmlView
*
* @var string
*
* @since __DEPLOY_VERSION__
* @since 5.2.0
*/
public $extensionName;

Expand All @@ -79,7 +79,7 @@ class HtmlView extends BaseHtmlView
*
* @var string
*
* @since __DEPLOY_VERSION__
* @since 5.2.0
*/
public $typeName;

Expand All @@ -88,7 +88,7 @@ class HtmlView extends BaseHtmlView
*
* @var string[]
*
* @since __DEPLOY_VERSION__
* @since 5.2.0
*/
public $typeSupports;

Expand All @@ -97,7 +97,7 @@ class HtmlView extends BaseHtmlView
*
* @var string[]
*
* @since __DEPLOY_VERSION__
* @since 5.2.0
*/
public $typeFields;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class HtmlView extends BaseHtmlView
*
* @var string[]
*
* @since __DEPLOY_VERSION__
* @since 5.2.0
*/
public $ignore_fieldsets = [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class HtmlView extends BaseHtmlView
*
* @var object[]
*
* @since __DEPLOY_VERSION__
* @since 5.2.0
*/
public $fieldsets;

Expand All @@ -65,7 +65,7 @@ class HtmlView extends BaseHtmlView
*
* @var string
*
* @since __DEPLOY_VERSION__
* @since 5.2.0
*/
public $formControl;

Expand All @@ -74,7 +74,7 @@ class HtmlView extends BaseHtmlView
*
* @var string
*
* @since __DEPLOY_VERSION__
* @since 5.2.0
*/
public $return;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class HtmlView extends BaseHtmlView
*
* @var string[]
*
* @since __DEPLOY_VERSION__
* @since 5.2.0
*/
public $ignore_fieldsets = [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class HtmlView extends BaseHtmlView
*
* @var string[]
*
* @since __DEPLOY_VERSION__
* @since 5.2.0
*/
public $ignore_fieldsets = [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class HtmlView extends BaseHtmlView
*
* @var string[]
*
* @since __DEPLOY_VERSION__
* @since 5.2.0
*/
public $ignore_fieldsets = [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class HtmlView extends InstallerViewDefault
*
* @var array
*
* @since __DEPLOY_VERSION__
* @since 5.2.0
*/
protected $items;

Expand All @@ -38,7 +38,7 @@ class HtmlView extends InstallerViewDefault
*
* @var \Joomla\CMS\Pagination\Pagination
*
* @since __DEPLOY_VERSION__
* @since 5.2.0
*/
protected $pagination;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
* Form Field to display a list of the layouts for a field from
* the extension or template overrides.
*
* @since __DEPLOY_VERSION__
* @since 5.2.0
*/
class MailtemplateLayoutField extends FormField
{
/**
* The form field type.
*
* @var string
* @since __DEPLOY_VERSION__
* @since 5.2.0
*/
protected $type = 'MailtemplateLayout';

Expand All @@ -42,7 +42,7 @@ class MailtemplateLayoutField extends FormField
*
* @return string The field input.
*
* @since __DEPLOY_VERSION__
* @since 5.2.0
*/
protected function getInput()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class HtmlView extends BaseHtmlView
*
* @var string[]
*
* @since __DEPLOY_VERSION__
* @since 5.2.0
*/
public $ignore_fieldsets = [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class HtmlView extends BaseHtmlView
*
* @var string[]
*
* @since __DEPLOY_VERSION__
* @since 5.2.0
*/
public $ignore_fieldsets = [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class HtmlView extends BaseHtmlView
*
* @var string[]
*
* @since __DEPLOY_VERSION__
* @since 5.2.0
*/
public $ignore_fieldsets = [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class HtmlView extends BaseHtmlView
*
* @var string[]
*
* @since __DEPLOY_VERSION__
* @since 5.2.0
*/
public $ignore_fieldsets = [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class HtmlView extends BaseHtmlView
*
* @var array
*
* @since __DEPLOY_VERSION__
* @since 5.2.0
*/
protected $items;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class HtmlView extends BaseHtmlView
*
* @var string[]
*
* @since __DEPLOY_VERSION__
* @since 5.2.0
*/
public $ignore_fieldsets = [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class HtmlView extends BaseHtmlView
*
* @var string[]
*
* @since __DEPLOY_VERSION__
* @since 5.2.0
*/
public $ignore_fieldsets = [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class HtmlView extends BaseHtmlView
*
* @var string[]
*
* @since __DEPLOY_VERSION__
* @since 5.2.0
*/
public $ignore_fieldsets = [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class LevelModel extends AdminModel
*
* @return boolean True if successful, false if an error occurs.
*
* @since __DEPLOY_VERSION__
* @since 5.2.0
*/
public function delete(&$pks)
{
Expand Down
9 changes: 9 additions & 0 deletions administrator/components/com_users/src/Model/UserModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,15 @@ public function save($data)
}
}

// Unset the username if it should not be overwritten
if (
!$my->authorise('core.manage', 'com_users')
&& (int) $user->id === (int) $my->id
&& !ComponentHelper::getParams('com_users')->get('change_login_name')
) {
unset($data['username']);
}

// Bind the data.
if (!$user->bind($data)) {
$this->setError($user->getError());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class HtmlView extends BaseHtmlView
*
* @var string[]
*
* @since __DEPLOY_VERSION__
* @since 5.2.0
*/
public $ignore_fieldsets = [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class HtmlView extends BaseHtmlView implements UserFactoryAwareInterface
*
* @var string[]
*
* @since __DEPLOY_VERSION__
* @since 5.2.0
*/
public $ignore_fieldsets = [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class HtmlView extends BaseHtmlView
*
* @var string[]
*
* @since __DEPLOY_VERSION__
* @since 5.2.0
*/
public $ignore_fieldsets = [];

Expand Down
2 changes: 1 addition & 1 deletion administrator/manifests/files/joomla.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<authorUrl>www.joomla.org</authorUrl>
<copyright>(C) 2019 Open Source Matters, Inc.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<version>5.2.0-alpha4-dev</version>
<version>5.2.0-beta1</version>
<creationDate>2024-08</creationDate>
<description>FILES_JOOMLA_XML_DESCRIPTION</description>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ private function _sendEmail($data, $contact, $emailCopyToSender)
$mailer->addRecipient($contact->email_to);
$mailer->setReplyTo($templateData['email'], $templateData['name']);
$mailer->addTemplateData($templateData);
$mailer->addUnsafeTags(['name', 'email', 'body', 'customfields']);
$sent = $mailer->send();

// If we are supposed to copy the sender, do so.
Expand Down
1 change: 1 addition & 0 deletions components/com_users/src/Model/RegistrationModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ public function register($temp)
$mailer = new MailTemplate($mailtemplate, $app->getLanguage()->getTag());
$mailer->addTemplateData($data);
$mailer->addRecipient($data['email']);
$mailer->addUnsafeTags(['username', 'password_clear', 'name']);
$return = $mailer->send();
} catch (\Exception $exception) {
try {
Expand Down
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
"type": "vcs",
"url": "https://github.com/joomla-backports/php-tuf.git",
"no-api": true
},
{
"type": "vcs",
"url": "https://github.com/joomla-framework/security-filter.git"
}
],
"autoload": {
Expand All @@ -59,7 +63,7 @@
"joomla/database": "^3.2",
"joomla/di": "^3.0.1",
"joomla/event": "^3.0.1",
"joomla/filter": "^3.0.1",
"joomla/filter": "dev-3x-outputfilter-case as 3.0.2",
"joomla/filesystem": "^3.0.1",
"joomla/http": "^3.0.1",
"joomla/input": "~3.0",
Expand Down
Loading

0 comments on commit 406fcdd

Please sign in to comment.