changeset 3917:c1110b025133

PageEditor: simplified code for obfuscate_email_address
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 03 Aug 2008 15:01:55 +0200
parents afa2deceede7
children b54044da7d09
files MoinMoin/PageEditor.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/PageEditor.py	Sun Aug 03 13:44:31 2008 +0200
+++ b/MoinMoin/PageEditor.py	Sun Aug 03 15:01:55 2008 +0200
@@ -764,7 +764,7 @@
         request = self.request
         now = self._get_local_timestamp()
         u = request.user
-        obfuscate_email_address = u.email.replace('@', ' AT SPAMFREE ')[::-1].replace('.', ' TOD ', 1)[::-1]
+        obfuscate_email_address = u.email.lower().replace('@', ' AT ').replace('.', ' DOT ')
         signature = u.signature()
         variables = {
             'PAGE': self.page_name,