Skip to content

fix: roll out bluemonday Sanitize more widely#3794

Merged
dave-gray101 merged 2 commits into
mudler:masterfrom
dave-gray101:fix-sanitize-1
Oct 12, 2024
Merged

fix: roll out bluemonday Sanitize more widely#3794
dave-gray101 merged 2 commits into
mudler:masterfrom
dave-gray101:fix-sanitize-1

Conversation

@dave-gray101

@dave-gray101 dave-gray101 commented Oct 12, 2024

Copy link
Copy Markdown
Contributor

LocalAI already makes use of bluemonday for html sanitization. This PR implements that safety step in more places. Please let me know if any have been missed.

The fix to .github/ci/modelslist.go needs to be tested via this PR, but the other sanitizations seem to work according to my local testing. CI Step Passed 🍾

Signed-off-by: Dave Lee <dave@gray101.com>
… site

Signed-off-by: Dave Lee <dave@gray101.com>
@dave-gray101
dave-gray101 requested a review from mudler October 12, 2024 02:16
@dave-gray101
dave-gray101 enabled auto-merge (squash) October 12, 2024 02:16
@netlify

netlify Bot commented Oct 12, 2024

Copy link
Copy Markdown

Deploy Preview for localai ready!

Name Link
🔨 Latest commit ac9b6f3
🔍 Latest deploy log https://app.netlify.com/sites/localai/deploys/6709dbf1fa0da000082b03fd
😎 Deploy Preview https://deploy-preview-3794--localai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@dave-gray101
dave-gray101 merged commit a1634b2 into mudler:master Oct 12, 2024
@mudler mudler added the enhancement New feature or request label Oct 12, 2024
@dave-gray101
dave-gray101 deleted the fix-sanitize-1 branch October 12, 2024 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants