Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/helpers/url.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def validate_url(url):
logger.error('Invalid URL, could not determine the hostname, url=%s', url)
abort(400, 'Invalid URL, could not determine the hostname')

if not re.match(ALLOWED_DOMAINS_PATTERN, result.hostname):
if not re.fullmatch(ALLOWED_DOMAINS_PATTERN, result.hostname):
logger.error('URL domain not allowed: %s', result.hostname)
abort(400, 'URL domain not allowed')

Expand Down
Loading