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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user