]> Untitled Git - lemmy.git/commit
Sanitize html (#3708)
authorNutomic <me@nutomic.com>
Wed, 26 Jul 2023 18:01:15 +0000 (20:01 +0200)
committerGitHub <noreply@github.com>
Wed, 26 Jul 2023 18:01:15 +0000 (14:01 -0400)
commit3471f3533cb724b2cf6953d563aadfcc9f66c1d2
tree812655e51e67b58eaf611e7e3eb10557de45043b
parent2de994797e4fe8f569c903de35da55ccdf823fb8
Sanitize html (#3708)

* HTML sanitization in apub code

* Sanitize API inputs

* fmt

* Dont allow html a, img tags

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
41 files changed:
Cargo.lock
api_tests/src/post.spec.ts
crates/api/src/comment_report/create.rs
crates/api/src/community/ban.rs
crates/api/src/community/hide.rs
crates/api/src/lib.rs
crates/api/src/local_user/ban_person.rs
crates/api/src/local_user/save_settings.rs
crates/api/src/post_report/create.rs
crates/api/src/private_message_report/create.rs
crates/api/src/site/purge/comment.rs
crates/api/src/site/purge/community.rs
crates/api/src/site/purge/person.rs
crates/api/src/site/purge/post.rs
crates/api/src/site/registration_applications/approve.rs
crates/api_common/Cargo.toml
crates/api_common/src/utils.rs
crates/api_crud/src/comment/create.rs
crates/api_crud/src/comment/update.rs
crates/api_crud/src/community/create.rs
crates/api_crud/src/community/update.rs
crates/api_crud/src/custom_emoji/create.rs
crates/api_crud/src/custom_emoji/update.rs
crates/api_crud/src/post/create.rs
crates/api_crud/src/post/update.rs
crates/api_crud/src/private_message/create.rs
crates/api_crud/src/private_message/update.rs
crates/api_crud/src/site/create.rs
crates/api_crud/src/site/update.rs
crates/api_crud/src/user/create.rs
crates/apub/src/activities/block/block_user.rs
crates/apub/src/activities/block/undo_block_user.rs
crates/apub/src/activities/community/report.rs
crates/apub/src/activities/deletion/delete.rs
crates/apub/src/objects/comment.rs
crates/apub/src/objects/instance.rs
crates/apub/src/objects/person.rs
crates/apub/src/objects/post.rs
crates/apub/src/objects/private_message.rs
crates/apub/src/protocol/objects/group.rs
crates/db_schema/src/utils.rs