Browse Source

Implement basic email munging to prevent spam

Gu1 11 years ago
parent
commit
83b4a60508
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ffdnispdb/templates/project_detail.html

+ 1 - 1
ffdnispdb/templates/project_detail.html

@@ -48,7 +48,7 @@
         {%- endif %}
         {%- if project.email %}
         {{ field(_("email")) }}
-          <dd>{% if project.email %}<a href="mailto:{{ project.email }}"><i class="icon-envelope"></i> {{ project.email }}</a>{% else %}<em>None given</em>{% endif %}</dd>
+          <dd>{% if project.email %}<a href="mailto:{{ "[NO_SPAM]"+project.email }}"><i class="icon-envelope"></i> {{ project.email|e|replace("@", '<span style="display: none">PWET</span>@'|safe) }}</a>{% else %}<em>None given</em>{% endif %}</dd>
         {%- endif %}
         {%- if project.mainMailingList %}
         {{ field(_("main mailing list")) }}