mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #14104] [MERGED] fix: handle escaped characters in DATABASE_URL username #39019
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/14104
Author: @bassettb
Created: 5/20/2025
Status: ✅ Merged
Merged: 5/20/2025
Merged by: @tjbck
Base:
dev← Head:bryan/parse-db-user-chars📝 Commits (1)
12896fbuse unquote_user in peewee 3.17.10📊 Changes
3 files changed (+4 additions, -4 deletions)
View changed files
📝
backend/open_webui/internal/wrappers.py(+2 -2)📝
backend/requirements.txt(+1 -1)📝
pyproject.toml(+1 -1)📄 Description
Changelog Entry
Description
%40), just like the password might contain escaped special characters. OpenWebUI should properly decode this URL and unescape the%40back into@before sending the username to the database. The call to the Peewee library unescapes the password, but not the username. SqlAlchemy handles it for both username and password.Fixed
Additional Information
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.