[PR #1743] [MERGED] fix: sanitize filename before writing #3767

Closed
opened 2026-02-22 18:34:27 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/1743
Author: @jazelly
Created: 6/21/2024
Status: Merged
Merged: 6/25/2024
Merged by: @timothycarambat

Base: masterHead: sanitize-filename


📝 Commits (3)

📊 Changes

2 files changed (+11 additions, -5 deletions)

View changed files

📝 collector/utils/extensions/Confluence/index.js (+5 -5)
📝 collector/utils/files/index.js (+6 -0)

📄 Description

Fixes: https://github.com/Mintplex-Labs/anything-llm/issues/1737

Pull Request Type

  • 🐛 fix

Relevant Issues

resolves #1737

What is in this change?

Added a sanitizeFileName function to remove special chars in filename. This is used in confluence connector to safely write to fs

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/1743 **Author:** [@jazelly](https://github.com/jazelly) **Created:** 6/21/2024 **Status:** ✅ Merged **Merged:** 6/25/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `sanitize-filename` --- ### 📝 Commits (3) - [`590833a`](https://github.com/Mintplex-Labs/anything-llm/commit/590833aa94cd0688da20cbdc7fd4a464c0d62110) fix: sanitize filename before writing - [`575493b`](https://github.com/Mintplex-Labs/anything-llm/commit/575493bf89f330f9ad4370b6922b53018b40dfb7) fixup - [`21036b9`](https://github.com/Mintplex-Labs/anything-llm/commit/21036b916fd5aba32a157a72ef7fe1fe3129e9be) fixup ### 📊 Changes **2 files changed** (+11 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `collector/utils/extensions/Confluence/index.js` (+5 -5) 📝 `collector/utils/files/index.js` (+6 -0) </details> ### 📄 Description Fixes: https://github.com/Mintplex-Labs/anything-llm/issues/1737 ### Pull Request Type - [x] 🐛 fix ### Relevant Issues resolves #1737 ### What is in this change? Added a `sanitizeFileName` function to remove special chars in filename. This is used in `confluence connector` to safely write to fs ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:34:27 -05:00
yindo closed this issue 2026-02-22 18:34:27 -05:00
yindo changed title from [PR #1743] fix: sanitize filename before writing to [PR #1743] [MERGED] fix: sanitize filename before writing 2026-06-05 15:15:07 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#3767