mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 20:12:00 -06:00
Improve comments and error message on invalid characters in URL
This commit is contained in:
parent
3a0849699f
commit
8d92089487
@ -324,8 +324,9 @@ if UPDATE_REPO_URL:
|
||||
"'https://api.github.com/repos/<owner>/<repository>'"
|
||||
)
|
||||
|
||||
# Don't allow ? (query) and # (fragment) in the URL
|
||||
if query or fragment:
|
||||
raise ImproperlyConfigured("UPDATE_REPO_URL may not contain a query or fragment")
|
||||
raise ImproperlyConfigured("UPDATE_REPO_URL may not contain a ? (query) or # (fragment)")
|
||||
|
||||
# Enforce a cache timeout of at least an hour to protect GitHub
|
||||
if UPDATE_CACHE_TIMEOUT < 3600:
|
||||
|
Loading…
Reference in New Issue
Block a user