def check_next_url(next):
 if ((not next) or ('://' in next)):
  return None
 return next

def check_next_url ( next ) : if ( ( not next ) or ( '://' in next ) ) : return None return next
checks to make sure the next url is not redirecting to another page .