mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-23 01:51:08 +00:00
Fix error when no referer
This commit is contained in:
parent
bc19d7c658
commit
ac2ef667af
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ from bookwyrm.settings import DOMAIN, USE_HTTPS
|
|||
|
||||
def validate_url_domain(url, default="/"):
|
||||
"""Basic check that the URL starts with the instance domain name"""
|
||||
if url in ("/", default):
|
||||
if url in ("/", default, None):
|
||||
return url
|
||||
|
||||
protocol = "https://" if USE_HTTPS else "http://"
|
||||
|
|
Loading…
Reference in a new issue