Skip to content
Snippets Groups Projects

laxer HTML sanitisation for admin-controlled text - fixes #447

Merged dakkar requested to merge feature/less-aggressive-html-sanitisation-447 into develop
All threads resolved!

What does this PR do? Allows images and styled links in admin-controlled HTML (instance description, rules). We can allow more things later if needed, in a single place.

I have intentionally not changed the sanitiser used in packages/backend/src/server/api/endpoints/users/report-abuse.ts because that one deals with HTML sent by random users, so we should trust it less.

Also I have not touched packages/frontend/src/components/MkAutocomplete.vue because that's just cleaning up emoji names.

Contribution Guidelines By submitting this merge request, you agree to follow our Contribution Guidelines

  • I agree to follow this project's Contribution Guidelines
  • I have made sure to test this pull request

Merge request reports

Merge request pipeline #532 failed

Merge request pipeline failed for 1eb1e721

Approved by

Merged by HazelnootHazelnoot 9 months ago (May 7, 2024 8:19pm UTC)

Merge details

Pipeline #558 failed

Pipeline failed for ac9e4733 on develop

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Hazelnoot
  • Hazelnoot
  • dakkar added 1 commit

    added 1 commit

    Compare with previous version

  • dakkar resolved all threads

    resolved all threads

  • dakkar reset approvals from @Marie by pushing to the branch

    reset approvals from @Marie by pushing to the branch

  • Hazelnoot approved this merge request

    approved this merge request

  • Marie approved this merge request

    approved this merge request

  • Hazelnoot enabled an automatic merge when the pipeline for 1eb1e721 succeeds

    enabled an automatic merge when the pipeline for 1eb1e721 succeeds

  • Hazelnoot canceled the automatic merge

    canceled the automatic merge

  • merged

  • Hazelnoot mentioned in commit ac9e4733

    mentioned in commit ac9e4733

  • Please register or sign in to reply
    Loading