forked from 0x2620/pandora
fall back to use url as is
This commit is contained in:
parent
94fc4fbe7a
commit
69fae04bb8
1 changed files with 4 additions and 1 deletions
|
@ -53,7 +53,10 @@ def embed(request, id):
|
|||
})
|
||||
|
||||
def redirect_url(request, url):
|
||||
url = base64.decodebytes(url.encode()).decode()
|
||||
try:
|
||||
url = base64.decodebytes(url.encode()).decode()
|
||||
except:
|
||||
pass
|
||||
if settings.CONFIG['site'].get('sendReferrer', False):
|
||||
return redirect(url)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue