Skip to content

Commit

Permalink
feat: unescaping url
Browse files Browse the repository at this point in the history
  • Loading branch information
quertenmont committed Nov 26, 2024
1 parent 7c7f6da commit be531a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion django_mail_analytics/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
__email__ = "[email protected]"
__license__ = "MIT"
__title__ = "django-mail-analytics"
__version__ = "1.0.2"
__version__ = "1.0.3"
2 changes: 2 additions & 0 deletions django_mail_analytics/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from django.db.models import Count, F, Q
from django.http import HttpResponse, HttpResponseRedirect
from django.views.generic import ListView
from html import unescape

from .mail import mail_settings, register_action
from .models import Mail
Expand All @@ -30,6 +31,7 @@ async def proxy(request):
domain = mail_settings()["DOMAIN"]
HttpResponseRedirect(f"{scheme}://{domain}/")

url = unescape(url)
await register_action(q, url)
return HttpResponseRedirect(url)

Expand Down

0 comments on commit be531a1

Please sign in to comment.