Merge pull request #11408 from wfjsw/patch-1

Strip whitespaces from URL and dirname prior to extension installation
This commit is contained in:
AUTOMATIC1111 2023-06-27 06:20:59 +03:00 committed by GitHub
commit 820bbb5b7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 == "":