mirror of
https://github.com/open-webui/open-webui
synced 2025-02-21 04:17:26 +00:00
SSRF Fix Updated
This commit is contained in:
parent
1f8d08eaa2
commit
590fd129c8
@ -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.")
|
||||||
|
Loading…
Reference in New Issue
Block a user