fix: remove unsafe link generation

This commit is contained in:
2025-07-03 21:18:54 +02:00
parent f7b98c9dfe
commit b5dc6ca97d
2 changed files with 5 additions and 8 deletions

View File

@@ -445,13 +445,6 @@ class AdoptionNotice(models.Model):
distance = geo.calculate_distance_between_coordinates(self.position, position)
return distance < max_distance
@property
def link_to_more_information(self):
from urllib.parse import urlparse
domain = urlparse(self.further_information).netloc
return f"<a href='{self.further_information}'>{domain}</a>"
@property
def is_active(self):
if not hasattr(self, 'adoptionnoticestatus'):