Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def parse_pagination_param(param_key):
pagination_param = request.args.get(param_key, None)
if not pagination_param:
return False
sanitized_param = filter_pagination_param(pagination_param)
unserialized_pagination = unserialize_bookmark(sanitized_param)
return unserialized_pagination