Skip to content

Commit

Permalink
3.7.55.2 - fixed an XSS vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Sep 22, 2022
1 parent e59cfc7 commit 7139213
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,10 @@
# Release Notes for Craft CMS 3.x

## 3.7.55.2 - 2022-09-22

### Security
- Fixed an XSS vulnerability.

## 3.7.55.1 - 2022-09-21

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion composer.json
@@ -1,7 +1,7 @@
{
"name": "craftcms/cms",
"description": "Craft CMS",
"version": "3.7.55.1",
"version": "3.7.55.2",
"keywords": [
"cms",
"craftcms",
Expand Down
5 changes: 4 additions & 1 deletion src/base/Element.php
Expand Up @@ -4086,7 +4086,10 @@ public function getMetadata(): array
}
/** @var RevisionBehavior $behavior */
$behavior = $revision->getBehavior('revision');
return $behavior->revisionNotes ?: false;
if ($behavior->revisionNotes === null || $behavior->revisionNotes === '') {
return false;
}
return Html::encode($behavior->revisionNotes);
},
]);
}
Expand Down
2 changes: 1 addition & 1 deletion src/config/app.php
Expand Up @@ -3,7 +3,7 @@
return [
'id' => 'CraftCMS',
'name' => 'Craft CMS',
'version' => '3.7.55.1',
'version' => '3.7.55.2',
'schemaVersion' => '3.7.33',
'minVersionRequired' => '2.6.2788',
'basePath' => dirname(__DIR__), // Defines the @app alias
Expand Down

0 comments on commit 7139213

Please sign in to comment.