Skip to content

Commit ef23479

Browse files
authored
Merge pull request #18665 from RocketChat/release-3.5.4
Release 3.5.4
2 parents e6fdb27 + e8f3f09 commit ef23479

File tree

13 files changed

+64
-23
lines changed

13 files changed

+64
-23
lines changed

.docker/Dockerfile.rhel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM registry.access.redhat.com/rhscl/nodejs-8-rhel7
22

3-
ENV RC_VERSION 3.5.3
3+
ENV RC_VERSION 3.5.4
44

55
66

.github/history.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48074,6 +48074,28 @@
4807448074
]
4807548075
}
4807648076
]
48077+
},
48078+
"3.5.4": {
48079+
"node_version": "12.16.1",
48080+
"npm_version": "6.14.0",
48081+
"apps_engine_version": "1.16.0",
48082+
"mongo_versions": [
48083+
"3.4",
48084+
"3.6",
48085+
"4.0"
48086+
],
48087+
"pull_requests": [
48088+
{
48089+
"pr": "18621",
48090+
"title": "[FIX] MarkdownText usage",
48091+
"userLogin": "ggazzo",
48092+
"milestone": "3.5.4",
48093+
"contributors": [
48094+
"ggazzo",
48095+
"web-flow"
48096+
]
48097+
}
48098+
]
4807748099
}
4807848100
}
4807948101
}

.snapcraft/resources/prepareRocketChat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
curl -SLf "https://releases.rocket.chat/3.5.3/download/" -o rocket.chat.tgz
3+
curl -SLf "https://releases.rocket.chat/3.5.4/download/" -o rocket.chat.tgz
44

55
tar xf rocket.chat.tgz --strip 1
66

.snapcraft/snap/snapcraft.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# 5. `snapcraft snap`
88

99
name: rocketchat-server
10-
version: 3.5.3
10+
version: 3.5.4
1111
summary: Rocket.Chat server
1212
description: Have your own Slack like online chat, built with Meteor. https://rocket.chat/
1313
confinement: strict

HISTORY.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11

2+
# 3.5.4
3+
`2020-08-24 · 1 🐛 · 1 👩‍💻👨‍💻`
4+
5+
### Engine versions
6+
- Node: `12.16.1`
7+
- NPM: `6.14.0`
8+
- MongoDB: `3.4, 3.6, 4.0`
9+
- Apps-Engine: `1.16.0`
10+
11+
### 🐛 Bug fixes
12+
13+
14+
- MarkdownText usage ([#18621](https://github.com/RocketChat/Rocket.Chat/pull/18621))
15+
16+
### 👩‍💻👨‍💻 Core Team 🤓
17+
18+
- [@ggazzo](https://github.com/ggazzo)
19+
220
# 3.5.3
321
`2020-08-19 · 3 🐛 · 2 👩‍💻👨‍💻`
422

app/utils/rocketchat.info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "3.5.3"
2+
"version": "3.5.4"
33
}

client/admin/cloud/ManualWorkspaceRegistrationModal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function CopyStep({ onNextButtonClick }) {
6767
<Icon name='copy' /> {t('Copy')}
6868
</Button>
6969
</Box>
70-
<MarkdownText is='p' withRichContent content={t('Cloud_click_here', { cloudConsoleUrl })} />
70+
<MarkdownText is='p' preserveHtml={true} withRichContent content={t('Cloud_click_here', { cloudConsoleUrl })} />
7171
</Modal.Content>
7272
<Modal.Footer>
7373
<ButtonGroup>

client/admin/settings/Setting.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export function Setting({ className, settingId, sectionChanged }) {
132132
} = setting;
133133

134134
const label = (i18nLabel && t(i18nLabel)) || (_id || t(_id));
135-
const hint = useMemo(() => t.has(i18nDescription) && <MarkdownText content={t(i18nDescription)} />, [i18nDescription, t]);
135+
const hint = useMemo(() => t.has(i18nDescription) && <MarkdownText preserveHtml={true} content={t(i18nDescription)} />, [i18nDescription, t]);
136136
const callout = useMemo(() => alert && <span dangerouslySetInnerHTML={{ __html: t(alert) }} />, [alert, t]);
137137
const hasResetButton = !disableReset && !readonly && type !== 'asset' && (JSON.stringify(packageEditor) !== JSON.stringify(editor) || JSON.stringify(value) !== JSON.stringify(packageValue)) && !disabled;
138138

client/components/basic/MarkdownText.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1+
import s from 'underscore.string';
12
import { Box } from '@rocket.chat/fuselage';
23
import React, { useMemo } from 'react';
34
import marked from 'marked';
45

56
marked.InlineLexer.rules.gfm.strong = /^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/;
67
marked.InlineLexer.rules.gfm.em = /^__(?=\S)([\s\S]*?\S)__(?!_)|^_(?=\S)([\s\S]*?\S)_(?!_)/;
78

8-
function MarkdownText({ content, ...props }) {
9-
const options = useMemo(() => ({
10-
gfm: true,
11-
headerIds: false,
12-
}), []);
9+
const options = {
10+
gfm: true,
11+
headerIds: false,
12+
};
1313

14-
const __html = useMemo(() => content && marked(content, options), [content, options]);
14+
function MarkdownText({ content, preserveHtml = false, ...props }) {
15+
const __html = useMemo(() => content && marked(preserveHtml ? content : s.escapeHTML(content), options), [content, preserveHtml]);
1516

1617
return <Box dangerouslySetInnerHTML={{ __html }} withRichContent {...props} />;
1718
}

client/components/basic/UserCard.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Box, Tag, Button, Icon, Skeleton } from '@rocket.chat/fuselage';
44
import { ActionButton } from './Buttons/ActionButton';
55
import UserAvatar from './avatar/UserAvatar';
66
import * as Status from './UserStatus';
7+
import MarkdownText from './MarkdownText';
78

89
const clampStyle = {
910
display: '-webkit-box',
@@ -84,7 +85,7 @@ const UserCard = forwardRef(({
8485
{ customStatus && <Info>{customStatus}</Info> }
8586
<Roles>{roles}</Roles>
8687
<Info>{localTime}</Info>
87-
{ bio && <Info withTruncatedText={false} style={clampStyle} height='x60'>{bio}</Info> }
88+
{ bio && <Info withTruncatedText={false} style={clampStyle} height='x60'><MarkdownText content={bio}/></Info> }
8889
{open && <a onClick={open}>{t('See_full_profile')}</a>}
8990
</Box>
9091
{onClose && <Box><ActionButton icon='cross' onClick={onClose}/></Box>}

0 commit comments

Comments
 (0)