forked from MarseyWorld/MarseyWorld
make sure url is null not ''
parent
68a1684035
commit
cf7b034cf2
|
@ -499,6 +499,8 @@ def badge_grant_post(v):
|
|||
if '\\' in url: abort(400)
|
||||
if url.startswith(f'{SITE_FULL}/'):
|
||||
url = url.split(SITE_FULL, 1)[1]
|
||||
else:
|
||||
url = None
|
||||
|
||||
existing = user.has_badge(badge_id)
|
||||
if existing:
|
||||
|
|
Loading…
Reference in New Issue