mirror of
https://github.com/Athou/commafeed.git
synced 2026-11-20 02:33:33 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
728868784e | ||
|
|
e59948c68c | ||
|
|
d3ba47d200 |
@@ -1,5 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## [7.5.2]
|
||||
|
||||
- Fix Youtube embeds not loading and stealing focus (#2394)
|
||||
|
||||
## [7.5.1]
|
||||
|
||||
- Fix multiple entry context menus being open at the same time (#2393)
|
||||
|
||||
12
commafeed-client/package-lock.json
generated
12
commafeed-client/package-lock.json
generated
@@ -2178,9 +2178,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@tybys/wasm-util": {
|
||||
"version": "0.10.4",
|
||||
"resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.4.tgz",
|
||||
"integrity": "sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==",
|
||||
"version": "0.10.5",
|
||||
"resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.5.tgz",
|
||||
"integrity": "sha512-dOGOPxlaNV+G046mZzN+9C0dAcQZeSKcXiVaM0TYy/LM4ttTmgSBDxYfovcYI8Em3+eAbiAYpvWLOv8+ZVRJKA==",
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"dependencies": {
|
||||
@@ -4558,9 +4558,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/numeric-quantity": {
|
||||
"version": "3.3.4",
|
||||
"resolved": "https://registry.npmjs.org/numeric-quantity/-/numeric-quantity-3.3.4.tgz",
|
||||
"integrity": "sha512-mYzGsK+5jEK3DM3iAxC8ACKp6k1qH2lxvbTQxfIb6FL+meXx4yrwUTiAQtXik7ZnCj8R5pMIY63Ra0wPP3SW/A==",
|
||||
"version": "3.3.5",
|
||||
"resolved": "https://registry.npmjs.org/numeric-quantity/-/numeric-quantity-3.3.5.tgz",
|
||||
"integrity": "sha512-6+8OIGgAmHb+PVCkmfqF1LqpZQ2IVI8DrCR722U5sRZ8h8Ha6cjGl3HeRqb5sz5LMb6S+tkxbMkSwWSUOi54dg==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<parent>
|
||||
<groupId>com.commafeed</groupId>
|
||||
<artifactId>commafeed</artifactId>
|
||||
<version>7.5.1</version>
|
||||
<version>7.5.2</version>
|
||||
</parent>
|
||||
<artifactId>commafeed-client</artifactId>
|
||||
<name>CommaFeed Client</name>
|
||||
|
||||
@@ -106,7 +106,14 @@ const Content = React.memo((props: ContentProps) => {
|
||||
return (
|
||||
<BasicHtmlStyles>
|
||||
<Box className={classes.content}>
|
||||
<Interweave content={props.content} transform={transform} matchers={matchers} allowList={allowList} />
|
||||
<Interweave
|
||||
content={props.content}
|
||||
transform={transform}
|
||||
matchers={matchers}
|
||||
allowList={allowList}
|
||||
// attributes are already sanitized server-side
|
||||
allowAttributes
|
||||
/>
|
||||
</Box>
|
||||
</BasicHtmlStyles>
|
||||
)
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<parent>
|
||||
<groupId>com.commafeed</groupId>
|
||||
<artifactId>commafeed</artifactId>
|
||||
<version>7.5.1</version>
|
||||
<version>7.5.2</version>
|
||||
</parent>
|
||||
<artifactId>commafeed-server</artifactId>
|
||||
<name>CommaFeed Server</name>
|
||||
@@ -303,7 +303,7 @@
|
||||
<dependency>
|
||||
<groupId>com.commafeed</groupId>
|
||||
<artifactId>commafeed-client</artifactId>
|
||||
<version>7.5.1</version>
|
||||
<version>7.5.2</version>
|
||||
</dependency>
|
||||
|
||||
<!-- compile-time processors -->
|
||||
|
||||
@@ -140,6 +140,7 @@ public class FeedEntryContentCleaningService {
|
||||
|
||||
whitelist.addEnforcedAttribute("a", "target", "_blank");
|
||||
whitelist.addEnforcedAttribute("a", "rel", "noreferrer");
|
||||
whitelist.addEnforcedAttribute("iframe", "referrerpolicy", "strict-origin-when-cross-origin");
|
||||
return whitelist;
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ class FeedEntryContentCleaningServiceTest {
|
||||
<p>
|
||||
Some text
|
||||
<img width="965" height="320" src="https://localhost/an-image.png" alt="alt-desc" style="width:100%;">
|
||||
<iframe src="https://localhost/an-iframe" style="width:100%;"></iframe>
|
||||
<iframe src="https://localhost/an-iframe" style="width:100%;" referrerpolicy="strict-origin-when-cross-origin"></iframe>
|
||||
aaa
|
||||
</p>
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user