1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-06 23:05:10 +01:00

Use referrer when url encode doesn't work because of security scope

This commit is contained in:
2016-08-03 21:34:44 +02:00
parent 271f2fa4a0
commit 4ee925de45

View File

@@ -282,6 +282,8 @@ def addbookmark(userkey):
url = request.args.get('url')
if not url:
url = ''
if request.args.get('referrer'):
url = request.referrer
bookmark = Bookmark(title='', url=url, tags='')
message = request.args.get('message')
tags = get_cached_tags(userkey)