Skip to content

Commit 7139213

Browse files
committed
3.7.55.2 - fixed an XSS vulnerability
1 parent e59cfc7 commit 7139213

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release Notes for Craft CMS 3.x
22

3+
## 3.7.55.2 - 2022-09-22
4+
5+
### Security
6+
- Fixed an XSS vulnerability.
7+
38
## 3.7.55.1 - 2022-09-21
49

510
### Fixed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "craftcms/cms",
33
"description": "Craft CMS",
4-
"version": "3.7.55.1",
4+
"version": "3.7.55.2",
55
"keywords": [
66
"cms",
77
"craftcms",

src/base/Element.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4086,7 +4086,10 @@ public function getMetadata(): array
40864086
}
40874087
/** @var RevisionBehavior $behavior */
40884088
$behavior = $revision->getBehavior('revision');
4089-
return $behavior->revisionNotes ?: false;
4089+
if ($behavior->revisionNotes === null || $behavior->revisionNotes === '') {
4090+
return false;
4091+
}
4092+
return Html::encode($behavior->revisionNotes);
40904093
},
40914094
]);
40924095
}

src/config/app.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
return [
44
'id' => 'CraftCMS',
55
'name' => 'Craft CMS',
6-
'version' => '3.7.55.1',
6+
'version' => '3.7.55.2',
77
'schemaVersion' => '3.7.33',
88
'minVersionRequired' => '2.6.2788',
99
'basePath' => dirname(__DIR__), // Defines the @app alias

0 commit comments

Comments
 (0)