mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 02:30:30 -08:00
Merge pull request #11408 from wfjsw/patch-1
Strip whitespaces from URL and dirname prior to extension installation
This commit is contained in:
commit
820bbb5b7b
1 changed files with 5 additions and 0 deletions
|
|
@ -325,6 +325,11 @@ def normalize_git_url(url):
|
|||
def install_extension_from_url(dirname, url, branch_name=None):
|
||||
check_access()
|
||||
|
||||
if isinstance(dirname, str):
|
||||
dirname = dirname.strip()
|
||||
if isinstance(url, str):
|
||||
url = url.strip()
|
||||
|
||||
assert url, 'No URL specified'
|
||||
|
||||
if dirname is None or dirname == "":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue