def getRedirectTarget():
""" Extracts the Next target and checks its safety.
Note:
Extracts the input from flask.request
Returns:
str: URL if the target is safe.
"""
for target in request.values.get('next'), request.referrer:
if not target:
continue
if isSafeUrl(target):
return target
###################################################
评论列表
文章目录