mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
SSRF Fix Updated
This commit is contained in:
parent
1f8d08eaa2
commit
590fd129c8
1 changed files with 1 additions and 2 deletions
|
|
@ -150,8 +150,7 @@ async def update_engine_url(
|
|||
else:
|
||||
url = form_data.AUTOMATIC1111_BASE_URL.strip("/")
|
||||
try:
|
||||
r = requests.head(url)
|
||||
r.raise_for_status()
|
||||
r = requests.head(url)
|
||||
app.state.config.AUTOMATIC1111_BASE_URL = url
|
||||
except Exception as e:
|
||||
raise HTTPException(status_code=400, detail="Invalid URL provided.")
|
||||
|
|
|
|||
Loading…
Reference in a new issue