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
590fd129
Commit
590fd129
authored
Aug 07, 2024
by
root
Browse files
SSRF Fix Updated
parent
1f8d08ea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
backend/apps/images/main.py
backend/apps/images/main.py
+1
-2
No files found.
backend/apps/images/main.py
View file @
590fd129
...
@@ -151,7 +151,6 @@ async def update_engine_url(
...
@@ -151,7 +151,6 @@ async def update_engine_url(
url
=
form_data
.
AUTOMATIC1111_BASE_URL
.
strip
(
"/"
)
url
=
form_data
.
AUTOMATIC1111_BASE_URL
.
strip
(
"/"
)
try
:
try
:
r
=
requests
.
head
(
url
)
r
=
requests
.
head
(
url
)
r
.
raise_for_status
()
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
=
"Invalid URL provided."
)
raise
HTTPException
(
status_code
=
400
,
detail
=
"Invalid URL provided."
)
...
...
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