Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
8d257ed5
Unverified
Commit
8d257ed5
authored
Aug 08, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Aug 08, 2024
Browse files
Merge commit from fork
SSRF Fix
parents
99d10d11
590fd129
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
backend/apps/images/main.py
backend/apps/images/main.py
+2
-2
No files found.
backend/apps/images/main.py
View file @
8d257ed5
...
@@ -153,7 +153,7 @@ async def update_engine_url(
...
@@ -153,7 +153,7 @@ async def update_engine_url(
r
=
requests
.
head
(
url
)
r
=
requests
.
head
(
url
)
app
.
state
.
config
.
AUTOMATIC1111_BASE_URL
=
url
app
.
state
.
config
.
AUTOMATIC1111_BASE_URL
=
url
except
Exception
as
e
:
except
Exception
as
e
:
raise
HTTPException
(
status_code
=
400
,
detail
=
ERROR_MESSAGES
.
DEFAULT
(
e
)
)
raise
HTTPException
(
status_code
=
400
,
detail
=
"Invalid URL provided."
)
if
form_data
.
COMFYUI_BASE_URL
==
None
:
if
form_data
.
COMFYUI_BASE_URL
==
None
:
app
.
state
.
config
.
COMFYUI_BASE_URL
=
COMFYUI_BASE_URL
app
.
state
.
config
.
COMFYUI_BASE_URL
=
COMFYUI_BASE_URL
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment