[PR #1408] [MERGED] fix: manually check the docs' filename #7460

Closed
opened 2025-11-11 17:27:03 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/1408
Author: @Mmx233
Created: 4/3/2024
Status: Merged
Merged: 4/3/2024
Merged by: @tjbck

Base: devHead: main


📝 Commits (1)

  • 947c392 fix: manually check the docs' filename

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 backend/apps/rag/main.py (+2 -2)

📄 Description

Pull Request Checklist

  • Description: Briefly describe the changes in this pull request.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: Have you updated relevant documentation?
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?

Description

When uploading documents, the system changed from only allowing ASCII character file names to manually checking for dangerous characters. It allows file names to include non-English characters such as Chinese and Korean. This PR may fix the problem in #1407.


Changelog Entry

Changed

  • Allow non-ASCII characters in docs' file names.

🔄 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/open-webui/open-webui/pull/1408 **Author:** [@Mmx233](https://github.com/Mmx233) **Created:** 4/3/2024 **Status:** ✅ Merged **Merged:** 4/3/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `main` --- ### 📝 Commits (1) - [`947c392`](https://github.com/open-webui/open-webui/commit/947c392f722b7aa97a82bf443de68681700997a6) fix: manually check the docs' filename ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `backend/apps/rag/main.py` (+2 -2) </details> ### 📄 Description ## Pull Request Checklist - [x] **Description:** Briefly describe the changes in this pull request. - [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [x] **Documentation:** Have you updated relevant documentation? - [x] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? --- ## Description When uploading documents, the system changed from only allowing ASCII character file names to manually checking for dangerous characters. It allows file names to include non-English characters such as Chinese and Korean. This PR may fix the problem in #1407. --- ### Changelog Entry ### Changed - Allow non-ASCII characters in docs' file names. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-11 17:27:03 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#7460