mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-24 03:18:21 -05:00
[PR #24420] [MERGED] fix:image url validation and signout post #131317
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/24420
Author: @Classic298
Created: 5/6/2026
Status: ✅ Merged
Merged: 5/8/2026
Merged by: @tjbck
Base:
dev← Head:refac/image-url-validation-and-signout-post📝 Commits (5)
2569aa6refac(routers): reject external URLs in profile/model image handlers1e112ferefac(ui): centralize image URL validation in safeImageUrl helper017fd39refac(auths): make signout POST-onlyb0fe9acMerge branch 'dev' into refac/image-url-validation-and-signout-poste835b48refac: gate external profile image redirect behind ENABLE_PROFILE_IMAGE_URL_FORWARDING📊 Changes
9 files changed (+75 additions, -25 deletions)
View changed files
📝
backend/open_webui/env.py(+13 -0)📝
backend/open_webui/routers/auths.py(+1 -1)📝
backend/open_webui/routers/models.py(+10 -5)📝
backend/open_webui/routers/users.py(+9 -6)📝
src/lib/apis/auths/index.ts(+1 -1)📝
src/lib/components/chat/Messages/ProfileImage.svelte(+2 -8)📝
src/lib/components/common/Image.svelte(+2 -1)📝
src/lib/components/common/RichTextInput/Image/image.ts(+4 -3)➕
src/lib/utils/safeImageUrl.ts(+33 -0)📄 Description
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.