File: //home/arjun/projects/buyercall/buyercall/lib/__pycache__/safe_next_url.cpython-310.pyc
o
�we� � @ s$ d dl mZ d dlmZ dd� ZdS )� )�urljoin)�requestc C s t tj| �S )z�
Ensure a relative URL path is on the same domain as this host.
This protects against the 'Open redirect vulnerability'.
:param target: Relative url (typically supplied by Flask-Login)
:type target: str
:return: str
)r r �host_url)�target� r �=/home/arjun/projects/buyercall/buyercall/lib/safe_next_url.py�
safe_next_url s r N)�urllib.parser �flaskr r r r r r �<module> s