Skip to content

Commit

Permalink
Merge branch '4.x' of https://github.com/craftcms/cms into 5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Feb 5, 2025
2 parents bb960e6 + bb22806 commit fa8184c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes for Craft CMS 5

## Unreleased

- Fixed a potential phishing attack vector.

## 5.6.5.1 - 2025-02-04

- Fixed an error that could occur when saving elements with nested elements on multi-site installs. ([#16609](https://github.com/craftcms/cms/issues/16609))
Expand Down
2 changes: 1 addition & 1 deletion src/elements/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@ protected function defineRules(): array
];

$rules[] = [
['fullName', 'firstName', 'lastName'], function($attribute, $params, Validator $validator) {
['fullName', 'firstName', 'lastName', 'username'], function($attribute, $params, Validator $validator) {
if (str_contains($this->$attribute, '://')) {
$validator->addError($this, $attribute, Craft::t('app', 'Invalid value “{value}”.'));
}
Expand Down

0 comments on commit fa8184c

Please sign in to comment.