Skip to content

Commit 988fb7a

Browse files
committed
fix: Remove ftp protocol
1 parent 9fa3962 commit 988fb7a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

HtmlCleaner/src/main/java/com/infomaniak/html/cleaner/BodyCleaner.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ internal class BodyCleaner {
5050
"wbr",
5151
)
5252
.addProtocols("a", "href", "http", "https", "mailto", "tel", "geo")
53+
.removeProtocols("a", "href", "ftp")
5354
.addAttributes(":all", "class", "dir", "id", "style")
5455
.addAttributes("a", "name", MENTION_ATTRIBUTE)
5556
.addAttributes("area", "alt", "coords", "href", "shape")

0 commit comments

Comments
 (0)