mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 18:08:38 -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>'"
|
"'https://api.github.com/repos/<owner>/<repository>'"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Don't allow ? (query) and # (fragment) in the URL
|
||||||
if query or fragment:
|
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
|
# Enforce a cache timeout of at least an hour to protect GitHub
|
||||||
if UPDATE_CACHE_TIMEOUT < 3600:
|
if UPDATE_CACHE_TIMEOUT < 3600:
|
||||||
|
Loading…
Reference in New Issue
Block a user