1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-06 22:05:09 +01:00
This commit is contained in:
2018-03-26 15:00:09 +02:00
parent bfc4fb702a
commit 718b39a267

View File

@@ -585,6 +585,7 @@ def bookmarks_page(userkey, filtermethod=None, sortmethod=None):
@app.route('/r/<userkey>/<urlhash>')
def bookmark_redirect(userkey, urlhash):
""" Securely redirect a bookmark to its url, stripping referrer (if browser plays nice) """
# @TODO: add counter to this bookmark
try:
bookmark = Bookmark.get(
Bookmark.url_hash == urlhash,