Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
JisanAR03 committed Nov 4, 2023
1 parent 1ff9bb0 commit 7443d50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,8 +791,9 @@ def post(self, request, *args, **kwargs):
exists = False
domain = None
if email:
domain = email.split("@")[-1]
domain = sanitize_domain(email.split("@")[-1])
try:
return HttpResponse("Invalid domain name.")
ret = urllib.request.urlopen("https://" + sanitize_domain(domain) + "/favicon.ico")
exists = ret.code == 200
except:
Expand Down

0 comments on commit 7443d50

Please sign in to comment.